[Javascript] Image sizing

Cutter Bl cutterbl at hotmail.com
Tue Aug 7 19:42:21 CDT 2001


Fine tuning my site (http://www.falcon-knives.com) for various environments. 
I have a static hiermenu on the left side of the page. It appears correctly 
in IE, and almost right in NN4.7 (doesn't like styles much?), but in AOL the 
table extends below the image (the z-order keeps the graphic behind the 
table). I thought it might be possible to set the images height attributes 
to the menu table height + 10. I originally tried this by doing...

document.write("<img src='images/navbar.gif' border='0' id='navbar' 
name='navbar' width='100' height='" + (document.menu1.height + 10) + '">);

This killed the image entirely. I figured it must be because the image comes 
before the table in the code. Since I can't change that I tried a different 
way, setting the height after the table is written.

document.navbar.style.height = (document.menu1.style.height + 10);
//didn't work
document.navbar.height = (document.menu1.height + 10);
//this didn't either

Any ideas what (or where) I'm going wrong here? All help greatly 
appreciated.

Cutter
http://www.falcon-knives.com

The Past is a Memory
The Future a Dream
But Today is a Gift
That's why they call it
The Present


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




More information about the Javascript mailing list