Response title
This is preview!
$(document).ready(function () { function my_function() { var scroll_value = document.body.scrollTop; if (scroll_value > 0) { $("#my_div").fadeOut(500); } else { $("#my_div").fadeIn(500); } if (scroll_value >= 650) { $('#sl_userNav').show('slide', { direction: 'up' }, 750); } else { $('#sl_userNav').hide('slide', { direction: 'up' }, 750); } document.getElementById("sl_userNav").style.marginTop = scroll_value.toString() + "px"; } setInterval(my_function, 5); my_function(); });
© 2013 jQuery Foundation
Sponsored by and others.