 |
|
|  |
| 스크롤없는 Iframe (iframe에서 불러드리는 소스의 크지만큼 height를 넓힘) |
|
|
 |
19년 전 |
-- noscroll.js --
<!--
function reSize()
{
var objBody = ifrm.document.body;
var objFrame = document.all["ifrm"];
objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight)
objFrame.style.width = '100%'
}
function reSize2()
{
var obj = document.all["ifrm"];
var frameBody = obj.document.body;
obj.style.height = frameBody.height;
obj.style.width= '100%';
}
-- noscroll.html --
<html>
<Script Language="JavaScript" Src="noscroll.js">
</Script>
<body bgcolor=black height=800>
<iframe name=ifrm onload=reSize2() frameborder=0 marginwidth=0 marginheight=0 width=0 height=0 src="불러올페이지"></iframe>
</iframe>
</body>
<Script Language="JavaScript">
window.onload = reSize;
</Script>
</html>
|
|
추천 : 490 |
추천
목록
|
|
|  |
|