Team:Tianjin/Team

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 - 10){
+
if(s > t - 100){
$('.fixed').css('position','fixed');
$('.fixed').css('position','fixed');
-
if(s + fh - 400 > mh){
+
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

Retrieved from "http://2013.igem.org/Team:Tianjin/Team"