View Full Version : Expandable Iframe Help Needed.
PinkFM
12-11-2006, 11:11 PM
Okay, so there are some post about it, but none have worked on my site. If anyone can help please do, I really need expandable iFrame's for the new version of www.habbofire.com (http://www.habbofire.com)
Thankyou.
no-neck aka Confused boy :s
Heinous
12-11-2006, 11:25 PM
You don't have expandable iframes...
Colin-Roberts
13-11-2006, 12:17 AM
heinous for once your wrong
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
Heinous
13-11-2006, 02:42 AM
heinous for once your wrong
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
<iframe id="myframe" src="externalpage.htm" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
Where in that does it say "expandable"?
Using a bunch of javascript hacks doesn't count. Sure, it works, but what if someone turns off js?
So no, I wasn't wrong.
Dentafrice1
13-11-2006, 02:45 AM
<SCRIPT language=javascript>
<!--
function frm_onload(frmname)
{
frmname.frameElement.height = frmname.document.body.scrollHeight+20;
}
//-->
</SCRIPT>
Thats your JS. It expands / contracts it
--------------------------------------------
IFRAME
<IFRAME ID=frm NAME=frm WIDTH=100% LANGUAGE=javascript ONLOAD="return frm_onload(frm)" border="0" frameborder="0" scrolling="no" src="page">
</IFRAME>
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.