On Mar 1, 10:26 am, "Andrew Bailey" <a...@idontwantanyspam.comwrote:
Quote:
Hi,
>
Not sure if this is what you're looking for, but try...
<body scroll="no">
Hope that helps
That's good for IE but Firefox doesn't like it,
or at least it doesn't like it via Javascript
( document.body.scroll="no"; ).
I just found a cross-browser method:
document.body.style.overflow="hidden";
and
document.body.style.overflow="visible";
That disables the scrollbars nicely, but on
firefox there are mixed results. On older FF
(e.g. 1.0.x) you can still scroll with the
mousewheel. On FF2.0 they fixed that, but you
can still scroll by clicking on the mousewheel
(which gives you that floating navigation
circle).
I think I'll go with this. For most browsers,
and for most users, it'll solve the unsightly
effect I have where the DIV is trying to keep
in place via the scroll events. For those who
want to scroll using the mousewheel click
method, the anti-scroll code will still be there
doing it's job :)