묻고답하기


<script>
var memobj = new Array();
function syncheight(obj){
 if(obj){
  obj.style.height=obj.contentWindow.document.body.scrollHeight;
 }
 else{
  while(memobj.length>0){
   memobj[0].style.height=memobj[0].contentWindow.document.body.scrollHeight;
   memobj.shift();
  }
 }
}
function viewsmallframe(){
 var tmptr = event.srcElement.parentNode.parentNode.nextSibling;
 tmptr.style.display = tmptr.style.display=='none'?'':'none';
 
 memobj[memobj.length] = tmptr.cells(0).childNodes(0);
 memobj[memobj.length] = parent.document.getElementById('mainframe');
 setTimeout("syncheight()",1);
}
</script>
<!--타이틀,내용 시작-->
  <table width="652" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="78" height="50" rowspan="2"><img src="/images/product/title2.gif" width="78" height="50"></td>
            <td width="283">&nbsp;</td>
            <td width="291">&nbsp;</td>
          </tr>
          <tr>
            <td valign="bottom"><img src="/images/tit_right.gif" width="164" height="28"></td>
            <td><div align="right">ㆍHOME &gt; 제품소개 &gt; 슈퍼히터 </div></td>
          </tr>
          <tr>
            <td colspan="3"><img src="/images/product/main2_01.gif" width="652" height="343"></td>
          </tr>
          <tr>
            <td colspan="3"><table width="652" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><a href="p2_tab1.html" target="test"><img src="/images/product/sh41.gif" width="171" height="131" border="0"></a></td>
                <td><a href="p2_tab2.html" target="test"><img src="/images/product/sh51.gif" width="159" height="131" border="0"></a></td>
                <td><a href="p2_tab3.html" target="test"><img src="/images/product/sh61.gif" width="154" height="131" border="0"></a></td>
                <td><a href="p2_tab4.html" target="test"><img src="/images/product/sh71.gif" width="168" height="131" border="0"></a></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="15" colspan="3"></td>
          </tr>
          <tr>
            <td colspan="3"><iframe src="p2_tab1.html" style="width=652" onload=syncheight(this) scrolling="no"  frameborder="0"  marginheight="0" marginwidth="0" name="test"></iframe></td>
//제일 처음 문서에서 아이프레임을 불러오게 되는 형식입니다.//
          </tr>
        </table>
---------------------------------------------------------- 아이프레임이 들어가는 처음문서-----------------------------------------------------------------------
p2_tab1.html 이문서안에서 하단부위에 또 다른 문서를 아이프레임으로 불러오는데요. 문제는 높이값 싱크입니다.  그동안 한문서에서 사용시 높이값이 자동으로 맞춰졌는데요. sh41.gif 부터 버튼이미지 입니다. 이버튼들을 누르면 또다른 아이프레임들을 불러오게 되는데요. 문제는 맨앞의 버튼눌렀을시 나오는 아이프레임의 높이값에 맞춰져서 뒷페이지들도 똑같이 나옵니다. 첫페이지 문서의 높이값이 1200 정도이고 두번째가 600 이라 가정했을때 첫번째는 제대로 나오는데 두번쨰 페이지는 첫페이지의 높이값 그대로 먹혀 나오는거 같습니다. 두번째 세번째도 높이값이 자동으로 싱크율에 맞게 나와야 하는데 말이죠... ㅠㅠ 이럴땐 어떤 다른방법이 있거나 스크립트 소스를 바꾸면 가능한건지 알고 싶습니다. 둘중 하나는 페이지를 링크 시켜버려도 되긴하는데 그러면 또한번 헤드나 풋 전체적으로 한번 읽혀지기때문에 보는이에 있어서 사이트가 느리게 보일수가 있어서요. 정 방법이없으면 그렇게 해야겠지만서도요. 혹 방법이나 다른 방안을 알고 싶어서 여쭤보게 되었습니다. 이와 같은 부분을 해결 하신분 있으시거나 아시는분은 조언좀 부탁드리겠습니다.그럼 모두 좋은 밤 보내세요~
<script>
var memobj = new Array();
function syncheight(obj){
 if(obj){
  obj.style.height=obj.contentWindow.document.body.scrollHeight;
 }
 else{
  while(memobj.length>0){
   memobj[0].style.height=memobj[0].contentWindow.document.body.scrollHeight;
   memobj.shift();
  }
 }
}
function viewsmallframe(){
 var tmptr = event.srcElement.parentNode.parentNode.nextSibling;
 tmptr.style.display = tmptr.style.display=='none'?'':'none';
 
 memobj[memobj.length] = tmptr.cells(0).childNodes(0);
 memobj[memobj.length] = parent.document.getElementById('+ '+ 'mainframe');
 setTimeout("syncheight()",1);
}
</script>
</head>

<body>
<table width="652" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="390" height="26" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><a href="p2_tab1_41.html" target="test2"><img src="/images/product/tab_btn1.gif" width="71" height="26" border="0"></a></td>
        <td><a href="p2_tab2_71.html" target="test2"><img src="/images/product/tab_btn2.gif" width="71" height="26" border="0"></a></td>
        <td><a href="p2_tab3_71.html" target="test2"><img src="/images/product/tab_btn3.gif" width="71" height="26" border="0"></a></td>
        <td><a href="p2_tab5_41.html" target="test2"><img src="/images/product/tab_btn5.gif" width="71" height="26" border="0"></a></td>
        <td><a href="p2_tab6_41.html" target="test2"><img src="/images/product/tab_btn6.gif" width="71" height="26" border="0"></a></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="15">&nbsp;</td>
  </tr>
  <tr>
    <td><iframe src="p2_tab1_41.html" style="width=652" onload=syncheight(this) scrolling="no" frameborder="0"  marginheight="0" marginwidth="0" name="test2"></iframe></td>
//아이프레임안에서 또 아이프레임을 써서 또다른 문서를 불러오게 되는 형식입니다.//
  </tr>
</table>
</body>
</html>
---------------------------------------------------------- 아이프레임이 들어간 두번째문서-----------------------------------------------------------------------

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
추고넷 최근게시물 제목길이가 바뀌지 않습니다..ㅠ  
김춘자151 글을 올릴수 없네요.  
김춘자151 UTF-8전용 서버로 변경시 수정사항...  
통닭 권한이 없을경우 자동으로 로그인창 나타나기. file  
통닭 메인 페이지에 로그인을 달았을때.. [2] 2007.10.01
이재욱905 XE가 이미 설치된 db계정의 패스워드 변경되었을때 설정할것은? [1] 2007.10.02
Nee 블로그 글쓰기 버튼이... file  
하늘384 업그레이드 [1] 2007.10.02
단축 게시판에서 단축키 기능 없애고 싶은데요...  
천영주368 홈페이지에 게시판 사용관련 질문입니다.  
Mantaray 갤러리 게시판에 사진 올릴때요? [2] 2007.10.01
리틀왕자 제가 몰라서 그런데요!!  
서송길 게시판에서 동영상 재생  
이동건 회원가입/수정 시에 다른 DB.Table 에 쿼리를 주고 싶습니다.  
반지의제왕 아이프레임 안에 아이프레임 사용시 문의드립니다.  
candyshop 허접한 질문이요!  
김진섭366 mysql 질문입니다.  
정의석376 제로보드4에서 쓰던 게시판을 ZBXE에서도 사용가능할까요???  
하얀꽃 포워딩모듈에서 에러원인이 무엇인지... [2] file 2007.09.29
겨울도롱이 테이블과 아이프레임을 사용해서 홈페이지를 만들었는데 [2] 2007.09.30
지오폭주족 저 이거 처음사용하는데.. 이상해요.. ㅠ ; [1] 2007.10.01
쿠키 인스톨 과정시 DB설정 페이지 완료후 최초 인스톨페이지로 돌아와버림 [1] 2007.10.01
박종대255 로그인했을경우만 레이아웃 보이게 하는 방법좀요 ^^ [1] 2007.10.01
팔공산 확장변수에서는 한국주소를 사용할 수 없나요.  
초보 플래시 크기 설정 방법 질문입니다. [1] 2007.10.01
다케루 방문자수, 조회수, 페이지뷰가 좀 아이러니 합니다. [1] file 2007.10.01
뮤직리카 제로보드XE 에디터 아직 문제 많은 것 같습니다만? [2] 2007.09.29
정민욱483 PHP 초보입니다...궁금한점이있습니다. [2] 2007.09.13
l46kok 게시판 홈피에 올리기 [3] 2007.10.01
이영재 홈페이지가 안보여요... [2] 2007.10.01