scroll event

B

Bern

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.scrollTop
 
M

Michael Winter

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.scrollTop

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
 
F

Fred Oz

Michael said:
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.

There is also a discussion of it on:

comp.infosystems.www.authoring.stylesheets

dated 15.10.04


Fred.
 
M

Michael Winter

[snip]
There is also a discussion of it [fixed positioning with IE] on:

comp.infosystems.www.authoring.stylesheets

dated 15.10.04

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top