Kai.Grossjohann@gmx.net (Kai Grossjohann) wrote in message news:<e808b168.0311120527.1f725fcb@posting.google. com>...[color=blue]
>
> However, the problem is that it only works in Mozilla if I say
> overflow:auto in the top frame, it ceases working if I say
> overflow:hidden. But saying overflow:hidden is desirable because it
> eliminates a superfluous scrollbar. overflow:hidden works in IE.
>
> Any suggestions on getting rid of the scrollbars in Mozilla, too?[/color]
It turns out that overflow:-moz-scrollbars-none works in Mozilla: the
scrollbars are hidden, yet I can scroll programmatically.
So now I have this horrible piece of JavaScript which frobs the DOM to
change the overflow attribute if running in Mozilla. Suggestions for
improvements are most appreciated.
if (topdiv.style.MozAppearance == "") {
// We seem to be running in Mozilla, so let's frob the overflow
attribute.
topdiv.style.overflow = '-moz-scrollbars-none';
}
I'm not sure about the test that finds out if we are running Mozilla.
Cheers,
Kai