아이프레임안의 그누보드 리사이징이 안되는 문제! 정보
아이프레임안의 그누보드 리사이징이 안되는 문제!본문
<script language="JavaScript" type="text/JavaScript">
function resizeIFrame()
{
var iframeWin = document.frames['CLUB_BODY'];
var scrollbarWidth = 4;
var iframeWinBody = iframeWin.document.body;
var diffHeight = iframeWinBody.scrollHeight - document.all.CLUB_BODY.style.pixelHeight;
document.all.CLUB_BODY.style.pixelHeight = document.all.CLUB_BODY.style.pixelHeight + diffHeight + scrollbarWidth;
}
</script>
</head>
<body>
<table width="950" border="0" height="100%" align="center" cellpadding="0" cellspacing="0" valign="top">
<tr>
<td>
<iframe src="#" width="960" height="100%" allowtransparency="true" frameborder="0" id="ifrm" name="CLUB_BODY" onload="resizeIFrame();location='#'" onChange="resizeIFrame();"></iframe>
</td>
</tr>
</table>
이렇게 했는데 세로 리사이징이 안됩니다. ㅠㅠ 다른 태그들을 써봐도..먹질 않아요.
리사이징이 되도 홈페이지에서 스크롤을 내리면 글이 짤려서 내려가지가 않습니다. ㅠㅠ
function resizeIFrame()
{
var iframeWin = document.frames['CLUB_BODY'];
var scrollbarWidth = 4;
var iframeWinBody = iframeWin.document.body;
var diffHeight = iframeWinBody.scrollHeight - document.all.CLUB_BODY.style.pixelHeight;
document.all.CLUB_BODY.style.pixelHeight = document.all.CLUB_BODY.style.pixelHeight + diffHeight + scrollbarWidth;
}
</script>
</head>
<body>
<table width="950" border="0" height="100%" align="center" cellpadding="0" cellspacing="0" valign="top">
<tr>
<td>
<iframe src="#" width="960" height="100%" allowtransparency="true" frameborder="0" id="ifrm" name="CLUB_BODY" onload="resizeIFrame();location='#'" onChange="resizeIFrame();"></iframe>
</td>
</tr>
</table>
이렇게 했는데 세로 리사이징이 안됩니다. ㅠㅠ 다른 태그들을 써봐도..먹질 않아요.
리사이징이 되도 홈페이지에서 스크롤을 내리면 글이 짤려서 내려가지가 않습니다. ㅠㅠ
댓글 전체