On Sat, 16 Oct 2004 17:54:56 +0800, Bern <x@x.com> wrote:
[color=blue]
> Is there an OnScroll event for window in Netscape? If there is, how to
> know the offset? For example, in IE there is the document.body.s crollTop[/color]
It doesn't appear so, though it is listed in the Gecko DOM Reference
(<URL:http://www.mozilla.org/docs/dom/domref/>).
Out of curiosity, why do you want to know? If it's to keep something in a
fixed position, consider using CSS. IE doesn't support "position: fixed",
so you'll still need to script a fix for that, but it's a better solution.
I've got an example from last month, if you're interested.
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Michael Winter wrote:[color=blue]
> On Sat, 16 Oct 2004 17:54:56 +0800, Bern <x@x.com> wrote:[/color]
[snip][color=blue]
> Out of curiosity, why do you want to know? If it's to keep something in
> a fixed position, consider using CSS. IE doesn't support "position:
> fixed", so you'll still need to script a fix for that, but it's a
> better solution. I've got an example from last month, if you're
> interested.
>[/color]
On Sat, 16 Oct 2004 22:02:07 +1000, Fred Oz <ozfred@iinet.n et.au> wrote:
[snip]
[color=blue]
> There is also a discussion of it [fixed positioning with IE] on:
>
> comp.infosystem s.www.authoring.stylesheets
>
> dated 15.10.04[/color]
Thanks. I hadn't bothered reading that particular thread, though you did
confuse me for a minute: it was actually started on the 14th though for
you, it was around 0225 on the 15th.
I don't know if I like the suggested hack on the DevNull site as it
requires quirks-mode inducing HTML (if the latter of the two solutions is
chosen).
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Comment