묻고답하기


<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 남기남
madcow 레이아웃에 지정된 속성이 컨텐츠에 영향을 미치네요 [2] 2013.05.18 by 구름나무바위
dates 도움 요청합니다!  
나의해 홈페이지 글이 구글검색에 되지 않게 하는 방법 조언구해요 [1] 2013.05.18 by 짝사랑
오락실주인 기본레이아웃 질문 [default] [1] file 2013.05.18 by 송동우
페이스올 익스플로러 와 크롬에서 다르게 보여지는 이유 file  
gajagu 크롬에서 페이지 로딩문제 [1] file 2013.05.18 by 푸시아
nado0124 엮인글의 권한설장은 할 수 없는지요? (스팸차단) [2] 2013.05.18 by YEARNING
초로롱이 확장변수 select 사용시 목록문제  
늑대소리 레이아웃에서 메일인증팝업 지원 안해주나요??  
쿡래빗 조건문이 안되네요 [2] 2013.05.18 by 윈컴이
오락실주인 기본레이아웃 질문 [default] file  
loveis... 운영중인 홈페이지에 문제가 생겼습니다. 조언 좀 부탁드려요...ㅠㅠ [1] 2013.05.18 by Reejang
지환파 메인화면 로그인안하고 메인화면뜨게 하는방법이 없을까요 [1] file 2013.05.18 by Reejang
누란지세 음.. 그냥 궁금한건대, 사이트메뉴 는 몇개 까지 가능하나요? [1] 2014.07.16 by chansol
유유히 존재 하지않는 회원아이디 입니다 [1] 2013.05.19 by 송동우
개터리 아 ㅡㅡ;; xe 업데이트 이후.. [1] 2014.07.16 by chansol
크르릉33 이메일 주소 수정 불가능하게 하기 [4] 2013.05.19 by 크르릉33
별을사랑했네 정말 궁금해서 미치겠습니다. [13] file 2014.07.16 by 윈컴이
오락실주인 설문조사 아래 글이 써지나여 ?? [3] file 2014.07.16 by 송동우
짝사랑 일정 포인트가 되면 쪽지날아가게 ...  
ku99 "DB 파일은 myisam으로 생성되기에 트랜잭션이 이루어지지 않습니다." [2] 2013.05.19 by EnuX
loveis... 게시글 작성시 다음과 같은 현상은 어떤 문제인가요? [1] file 2013.05.19 by 투씨
뮤르시엘라고 [급함] 서버 이전 질문이 있습니다 [1] 2013.05.19 by 투씨
ii눈물꽃ii 익명게시판 사용시 질문드립니다 [1] 2013.05.19 by 송동우
OEZ 쉬운설치 ftp가 접속이 안딥니다.  
XE만세 특정 게시판의 특정 회원 글만 다른 게시판으로 모두 이동시키는 방법 [1] 2013.05.19 by 송동우
참치찌개 mysql 한번에 수정하기 [1] 2013.05.19 by 크르릉33
Fidelity 최근글 위젯에서 제목 글자 수 조정 file  
참치찌개 mysql 처리문제 [1] 2013.05.19 by 송동우
Fidelity 최근글 위젯에 새글,갱신 표시 아이콘 삭제 [2] 2013.05.19 by 송동우