Response title
This is preview!
$(document).ready(function () { function slide_menu() { scroll_value = $(window).scrollTop(); if (scroll_value > 500) { $('#userNav').show('slide', { direction: 'up' }, 750); }; if (scroll_value < 500) { $('#userNav').hide('slide', { direction: 'up' }, 750); }; } setInterval(slide_menu, 5); slide_menu(); });
When I change the lines with show/hide on something simple like
"alert" it works. I think there is a problem but I
don't know how to fix it, I'm beginner.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <link rel="stylesheet" href="style.css" type="text/css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script src="scripts.js"></script> <title></title> </head> <body> <div id="userNav"> <div id="kont"> <div id="logo"></div> <div id="menu"></div> </div> </div> <div id="po"></div> </body> </html>
© 2013 jQuery Foundation
Sponsored by and others.