OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Event "onscroll"?
This page's ID:
10794
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Here's a sample one borrowed from "some" script: [code] if (ie| |ns6) { document.body.onclick=hideAll; document.body.onscroll=hideAll; document.body.onmousemove=updateIt; } if (document.layers) { window.captureEvents(Event.MOUSEMOVE); window.captureEvents(Event.CLICK); window.onmousemove=updateIt; window.onclick=hideAll; } [/code] Apparently (but I should test it to make sure I'm saying the truth), on explorer "and" NN6 (I wonder), document.body.onscroll can be accessed directly. I think, but am not sure, that you should use the addEventListener for NN6 instead. Make a google search for "Mozilla addeventlistener" to make sure. For NN4, "all" you have to do is capture the mousmovement as shown above. BUT for any of those browsers, you should also capture the window margins, scrolltop and such to get a full compatibility. Does that make sense?
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »