trevor403

Untitled

Jun 15th, 2013
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. THIS:
  2.     allbutton.attr("onclick", "$('html, body').animate({scrollTop: $('.i_flag_free').eq(0).parents().eq(2).offset().top}, 500);");
  3.  
  4.    
  5. OR THIS:
  6.     allbutton.removeAttr("onclick")
  7.     allbutton.click(function() {
  8.         $('html, body').animate({scrollTop: $('.i_flag_free').eq(0).parents().eq(2).offset().top}, 500);
  9.     });
Advertisement
Add Comment
Please, Sign In to add comment