You can look into properties like scrollheight and scrollwidth of the
document.body. Then compare document.body.scrollheight with the current
frame or body height, and you know whether scrolling is necessary or not.
Then use width and height properties of your table to change its size on
the fly.
Unfortunately, this is only supported by IE (currently)
Take a look at the following address to get inspired on what you can do
with scripting in IE and in other browsers:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties.asp
Hope this helps,
Imar
> Hi All,
>
> Need your valued assistance again!!!
>
> I have a navigation frame down the left hand side of my site that needs
to
> use the vertical scrollbars option (when needed) for uses to click on the
> many links.
>
> The problem I have that when the links go off the visible page and the
> vertical scrollbar is displayed, the width of the scrollbar means that it
> covers a table that I have there and invokes the horizontal scrollbar.
This
> looks messy as it is only displaying the horizontal one to compensate for
> the width of the vertical scrollbar.
>
> I know the easy option is to allow a gap for the scrollbar, but this
means
> my table looks out of sorts between the left hand side frame and the main
> window frame.
>
> What I would love to do is check for the scrollbar being displayed and
then
> decrease the width of the table 'on the fly' so that it compensates
cleanly.
>
> Can somebody advise me on how to do this (using DHTML/Javascript ??)
>
> Thanks
>
>
> Laphan
>
>
>
>
>