Possible Duplicate:
How can I determine the direction of a jQuery scroll event?
I need a function that detects if I scrolling UP or Down in Javascript/jquery to Fire Some events.
Something Like This:
if(ScrollTop)
{
alert('SCROLL TOP');
}
else if(ScrollDown)
{
alert('SCROLL DOWN');
}
C: http://api.jquery.com/scroll/