Hello,

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:

HTML Code:
function onPageScroll(){
	alert('test page scroll');
}


if (window.addEventListener)
        window.addEventListener('scroll', onPageScroll, false);
}
but that didnt work. any help is appreciated.