illogique
12-24-2003, 03:08 PM
hi there
i'm using document.body.clientWidth to get the width of the windows to build an image the correct size...
the problem is with mozilla and netscape, when they're a vertical scroll, my image is too big and a horizontal scroll appear.
since internet explorer always has a vertical scroll than the width is always correct.
opera is smart enouph to provide the size depending if they is a vertical scroll or not.
so only netscape and mozilla provide the width before the vertical scroll appear since it the first thing in my page...
is the're a way to get that correct size?
or maybe to always display a vertical scroll even if the content is smaller than the windows??
you can take a look at
http://illogique.dyndns.org:8080/bd/prototype.php
i'm using document.body.clientWidth to get the width of the windows to build an image the correct size...
the problem is with mozilla and netscape, when they're a vertical scroll, my image is too big and a horizontal scroll appear.
since internet explorer always has a vertical scroll than the width is always correct.
opera is smart enouph to provide the size depending if they is a vertical scroll or not.
so only netscape and mozilla provide the width before the vertical scroll appear since it the first thing in my page...
is the're a way to get that correct size?
or maybe to always display a vertical scroll even if the content is smaller than the windows??
you can take a look at
http://illogique.dyndns.org:8080/bd/prototype.php