[thelist] JavaScript problem with Netscape 4.7
Sam Carter
sam at nativeintelligence.com
Fri Jan 16 13:25:13 CST 2004
The following JavaS will prevent the page's content field from becoming too
wide on high resolution displays.
/* Restrict growth of element on very-wide displays */
function resizeBox(){
sObj = document.getElementById("container")
if ( sObj ) {
if(document.body.clientWidth) (document.body.clientWidth>1024) ?
sObj.style.width = "955px" : sObj.style.width = "100%"
}
}
window.onload = resizeBox;
window.onresize = resizeBox;
--------------------------------------
Works great in IE, NS, but not NS 4.7. I suppose it's because NS 4.7
doesn't respect how the CSS ID #container width is applied to the table:
<table id="container">
But it may be any number of other reasons.
Any suggestions appreciated.
Sam
More information about the thelist
mailing list