How about just trying a frame?
How about just trying a frame?
Can anybody help me?![]()
drink up this bottle of yeah
and P A I N T your body on me
Right. Remove the tables and just have the divs.
Above the iframe have:
Then for your iframe code have:Code:<script type="text/javascript"> //<![CDATA[ window.onload = function() { var f = document.getElementById("main"); function resize() { var h = ""; var w = ""; if (f.contentDocument) { h = f.contentDocument.documentElement.offsetHeight + 20 + "px"; // can't find anything for Opera and Firefox that works for the width. OffetWidth doesn't work right either.(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>
You might have to edit the javascript/iframe to fit your needs. But it should work x)Code:<iframe src="welcome.html" width="100%" height="100%" frameborder="0" scrolling="no" name="main">Your browser doesn't support inline frames</iframe>
Last edited by Invent; 07-11-2006 at 04:27 PM.
If you PM me the graphics and code that you have so far, I will re-code it in fully DIVS if you want, I suppose you could use PHP includes, but why not just intergrate the other webpage into your index.
It is illogical unless using a navigational system, in which holds many many codes, which it would be easier to edit as one HTML file saved as .php can be used as an include.
Sorry to go off-topic and I mean no offence, but how can you be the webpage design manager when you use iframes, they lack any decent browser-compatibility and are a nightmare to get looking good.
Want to hide these adverts? Register an account for free!