/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(window).scroll(function(){   if  ($(window).scrollTop() >= 229){ //looking for the window to scroll to 229px in this example      $('#navigation_table').css({position:'fixed',top:0,left:'50%',margin:'0 0 0 -487.5px'});   } else {      $('#navigation_table').css({position:'relative'});     } });
Comments
