One page nav on and off states based on scrollTop

1
2
$(window).scroll(function() {
scrollTop = $(window).scrollTop(); //This calculation can be done once instead of being recalculated for each section.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.