Free Animated Greetings - Bad Credit Loans - Myspace Layouts - Debt Consolidation - WoW Gold

PDA

View Full Version : Help Writting XHTML/CSS Script (JavaScript)


iisthesloth
Aug 17th 2007, 6:14 pm
Hey guys, this has been buggin me for quite a while. I'm trying to write a simple script to make my iframe's height match my "wrapper" div's height. Any ideas? Thanks alot...

I was thinking something like this.
var wrapperHeight = window.document.style.wrapper.height;
window.document.iframe = wrapperHeight;

Logic Ali
Aug 18th 2007, 12:24 pm
Hey guys, this has been buggin me for quite a while. I'm trying to write a simple script to make my iframe's height match my "wrapper" div's height. Any ideas? Thanks alot...

I was thinking something like this.
var wrapperHeight = window.document.style.wrapper.height;
window.document.iframe = wrapperHeight;


At a point after the iframe and the div have been rendered, you could try:

document.getElementById("The_ID_of_the_Iframe").height=document.getElementById('The_ID_of_the_div').offsetHeight;