Team:Tianjin/Attributions
From 2013.igem.org
(Difference between revisions)
Line 169: | Line 169: | ||
$(window).scroll(function(e){ | $(window).scroll(function(e){ | ||
s = $(document).scrollTop(); | s = $(document).scrollTop(); | ||
- | if(s > t - | + | if(s > t - 100){ |
$('.fixed').css('position','fixed'); | $('.fixed').css('position','fixed'); | ||
- | if(s + fh - | + | if(s + fh - 2000 > mh){ |
$('.fixed').css('top',mh-s-fh+'px'); | $('.fixed').css('top',mh-s-fh+'px'); | ||
} | } |
Revision as of 18:10, 25 September 2013