묻고답하기

iframe;;;

2005.09.29 08:28

김만갑

안녕하세요 저는 메인페이지는 통프레임으로 만들고
게시판을 iframe으로 넣었거든요
그런데 스크롤 바 없이 싸이즈가 자유롭게 늘어났다가
줄어들었다가 했으면 좋겠는데

찾은 내용대로 따라해 보니까
저는 화면에 게시판부분이 전혀 안보여요

<iframe src="http://premier21.dothome.co.kr/bbs/zboard.php?id=news_premier" onLoad="calcHeight();" align="top"  width="700" height="0" scrolling="NO" ></iframe>

이렇게 했거든요..
자바스크립트는 요렇게...너꾸요..

</head>
<script language="JavaScript">
<!--
function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('the_iframe').contentWindow.
document.body.scrollHeight;

//change the height of the iframe
document.getElementById('the_iframe').height=
the_height;
}
//-->
</script>
<body topmargin="0" leftmargin="0" bgcolor="#CCCCCC">

이렇게 하라고 해서 했는데 게시판이 안보여요..
왜 그럴까요?ㅜ.ㅡ