View Full Version : iFrame Expan Help - Will Pay
Echo54321
20-05-2008, 08:44 PM
Well Basically, My Site www.Habbolife.co.uk (http://www.Habbolife.co.uk) , Has A Main iFrame, Which I Have Added Numerous Scripts To, Yet For Most People The iFrame Dosent Expand!
I have been at this for 2 months, and i can't get it to work!
Can anyone have a look at the site, and Css and pages ( View Source ) and see whats wrong
I'll pay Via paypal about.. £10 - £20
Decode
20-05-2008, 09:02 PM
<script type="text/javascript">
window.onload = function() {
var f = document.getElementById("mainframe");
function resize() {
var h = "";
var w = "";
if (f.contentDocument) {
h = f.contentDocument.documentElement.offsetHeight + 20 + "px";
(f.contentDocument.documentElement,"").getPropertyValue
("width");
} else if (f.contentWindow) {
h = f.contentWindow.document.body.scrollHeight + 5 + "px";
} else {
return;
}
f.setAttribute("height",h);
f.parentNode.setAttribute("height",h);
}
if (window.addEventListener) {
f.onload = resize;
} else if (f.attachEvent) {
f.attachEvent("onload", resize);
} else {
return;
}
resize();
}
</script>
^^ goes in <head>
id="mainframe"
^^ add to iframe tag
no need to pay :)
Echo54321
20-05-2008, 09:14 PM
Tried
No Work
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.