Team:DTU-Denmark/Templates/Standard page begin

From 2011.igem.org

(Difference between revisions)
Line 18: Line 18:
         $(window).scroll(function () {  
         $(window).scroll(function () {  
             var scrollPos = $(window).scrollTop();
             var scrollPos = $(window).scrollTop();
-
             if (scrollPos > 100) {
+
             if (scrollPos > 200) {
-
                 $("#navigation").css({'position' : 'fixed', 'top' : '0'});
+
                 $("#navigation").addClass("stickToTop");
             }
             }
         });
         });

Revision as of 21:48, 6 September 2011

{{{1}}}