jquery - Is there a way to determine how many scrolls have been made on a window? -


in relation post.

is there way determine number of scrolls made before executing action on jquery? currently, want happen instead of click event, scroll event trigger on nth number of scroll (say, third scroll event). there way this?

thanks!

hope meant..

var = 0;  $( window ).scroll(function() {   i++;   alert(i);   if(i == 3){         //your code   } 

});


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -