Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).scroll(
  2.             function()
  3.             {
  4.                 if ($(window).height() + $(window).scrollTop() == $(document).height())
  5.                 {
  6.                     ShowMore();
  7.                 }
  8.             });
  9.  
  10.             function ShowMore()
  11.             {
  12.                 for (var i=0; i<$('.list-member').length; ++i)
  13.                 {
  14.                     if ($($('.list-member')[i]).css('display') == 'none')
  15.                     {
  16.                        $($('.list-member')[i]).fadeIn('slow');
  17.                        ++k;
  18.                        if (k>=10) break;
  19.                     }
  20.                 }
  21.                 k=0;
  22.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement