roadie — 2006-09-28T17:54:22-04:00 — #1
Can anyone give me a quick how-to for firing off a function when the page is scrolled? I only need it for firefox. I tried to do:
alert('test page scroll');
window.addEventListener('scroll', onPageScroll, false);
but that didnt work. any help is appreciated.
mikefoster — 2006-09-28T20:53:04-04:00 — #2
I have two versions of Firefox, 1.0.2 and 188.8.131.52 (on WinXP). Both the following work in v1.5. In v1.02 they both work but only when you drag the scrollbar (doesn't work with scroll-wheel).
window.onscroll = listener1;
window.addEventListener('scroll', listener2, false);
roadie — 2006-09-29T16:59:06-04:00 — #3
thanks...i got it to work, but this error I am dealing with is actually occuring a hair before the scroll event is fired. Do you know if there is a way to capture an event for the scrollbar being released? The nearest I cant tell right now is that the order of events is mouse release > error occuring > scroll event.
mikefoster — 2006-09-30T01:19:37-04:00 — #4
That site requires flash.