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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -