Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - show element by default and hide upon scroll

0 votes
60 views
added Jan 30 in jQuery by LC Marshal Captain (20,990 points)
$(window).scroll(function() {
 var header19 = $('#header_2k19');
 $(header19).show();
 if ($(this).scrollTop()>0) {
   $(header19).hide();
 }
 else {
   $(header19).show();
 }
});

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...