View Full Version : iFrame Help
Seads
03-11-2008, 05:56 PM
Hey does anybody know how to do expandable iFrames, and make iFrames refresh for radio stats?
HabbDance
03-11-2008, 06:27 PM
Hey does anybody know how to do expandable iFrames, and make iFrames refresh for radio stats?
<html>
<head>
<script type="text/javascript">
function resizeIframe(){
var ifr = document.getElementById("main");
var ifrBody = ifr.contentWindow.document[getDocBody(ifr.contentWindow)];
ifr.style.height=ifrBody.scrollHeight+"px";
}
function getDocBody(win){
if (!win) win=window;
if (win.document.compatMode && win.document.compatMode != 'BackCompat') { //standards compliant mode
return "documentElement";
}
return "body";
}
</script>
</head>
<body>
<iframe id="main" name="main" src="test.htm" style="width:100%;height:200px;" frameborder="0" onload="resizeIframe();"></iframe>
</body>
</html>
There's the expandable iFrame script, and I actually am looking for something like the second thing you said.
Just use a meta refresh?
<meta http-equiv="refresh" content="seconds;url=url-of-this-page" />
Seads
03-11-2008, 09:16 PM
Thanks +rep
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.