초보 질문드립니다. 테이블안에 아이프레임 리사이즈 질문입니다. ㅜㅜ

초보 질문드립니다. 테이블안에 아이프레임 리사이즈 질문입니다. ㅜㅜ

QA

초보 질문드립니다. 테이블안에 아이프레임 리사이즈 질문입니다. ㅜㅜ

본문

제가 간단하게 테이블로 상단(로고), 중간(게시판), 하단 으로 나누고 중간부분에 아이프레임으로 게시판을 넣었습니다.

게시판 내용에 따라 아이프레임을 리사이징 하고 싶어서 검색해서 스크립트를 넣었는데요.

게시판 내용이 늘어나도 사이즈가 자동 조절이 안됩니다. 도와주세요 ㅜㅜ 제발..

 아래 내용입니다.

답변 부탁드려요~ㅠㅠ

 

<table width="800" border="0">
 
</table>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=""><script type="text/javascript">
function init(){
  var doc = document.getElementById('content');
  if(doc.offsetHeight == 0){
  } else {
  pageheight = doc.offsetHeight;

  parent.document.getElementById("contentFrame").height = pageheight+"px";
  }
}
window.onload = function(){
  init();
}

</script>
<head>


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.box { color: #FFF;
 font-family: "나눔바른고딕", "돋움";
 font-size: 30px;
}
</style>

</head>

<body>
<table width="800" border="0" align="center">
  <tr>
    <td colspan="3"><a href="../index.html"><img src="../img/xinanbao.jpg" width="800" height="119" alt="home"border=0></a></td>
  </tr>
  <tr>
    <td  colspan="3" align="center" valign="top"width="800" height="750"><p> </p>      <iframe  src="http://www.xinanbao.co.kr/gnuboard4/bbs/board.php?bo_table=box2" frameborder=0 scrolling=no width="660px"  height="100%" name="contentFrame" allowTransparency="true"></iframe>

</td>
  </tr>
  <tr>
    <td colspan="3"><img src="../img/foot.jpg" alt="" width="800" height="128" usemap="#Map" border="0">
      <map name="Map">
        <area shape="rect" coords="37,9,76,20" href="../index.html" alt="">
        <area shape="rect" coords="96,8,175,22" href="page1_xinanbao.html">
        <area shape="rect" coords="268,6,333,22" href="page3_yellowpage.html">
        <area shape="rect" coords="354,8,424,22" href="page4_Echoes Of Soul.html">
        <area shape="rect" coords="445,8,488,20" href="page5_korean.html">
        <area shape="rect" coords="513,9,582,21" href="page6_cq_cdNEWS.html">
        <area shape="rect" coords="674,10,705,22" href="page7_QA.html">
        <area shape="rect" coords="728,7,764,23" href="page8_gallaly.html">
    </map></td>
  </tr>
</table>
</body>


</html>​ 

이 질문에 댓글 쓰기 :

답변 2

답변을 작성하시기 전에 로그인 해주세요.
전체 19
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT