"Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >  sh=screen.availHeight;
> >  sw=screen.availWidth;
> >  ch=document.body.clientHeight;
> >  cw=document.body.clientWidth;
> >  if(!cw){ch=sh-132;cw=sw-8}
>
>
> What does this test really test?  Under what conditions is
> body.clientWidth zero (or null?)?

When it runs on Mozilla.

In this case, I take the screen width and height
to make the decision for the layout.

The difference is when somebody views my site
on a small window on a big screen.

For example somebody has a
640 pixel width window open on an XVGA screen.

MSIE returns correct clientWidth and the software
shows the page in VGA layout in the small window.

Mozilla returns 0 at clientWidth and the software
shows the page in XVGA layout in the small window.


--
Roland M�sl
http://pege.org Clear targets for a confused civilization
http://BeingFound.com Web Design starts at the search engine



Reply via email to