[thelist] JavaScript problem with Netscape 4.7

adietisheim at sphere.ch adietisheim at sphere.ch
Fri Jan 16 14:06:10 CST 2004


The first thing I see that does not work in NS47 is the DOM-address you
use to measure the width! In NS47 its window.innerWidth
I'm not quite sure if NS47 supports ...style.width, you sure check that on
some references to be sure about it.

> 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
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !





More information about the thelist mailing list