Difference between revisions of "Template:ZJU-China/mascot"
Line 76: | Line 76: | ||
jQuery(document).scroll(function() { | jQuery(document).scroll(function() { | ||
− | if(jQuery(document).height() - jQuery(window).height() - jQuery(window).scrollTop()> | + | if(jQuery(document).height() - jQuery(window).height() - jQuery(window).scrollTop()>270) |
{ | { | ||
jQuery('MASCOT').css('position','fixed').css('bottom','30px').css('top','auto'); | jQuery('MASCOT').css('position','fixed').css('bottom','30px').css('top','auto'); | ||
Line 82: | Line 82: | ||
else | else | ||
{ | { | ||
− | jQuery('MASCOT').css('position','absolute').css('top',jQuery(document).height()- | + | jQuery('MASCOT').css('position','absolute').css('top',jQuery(document).height()-445); |
} | } | ||