Team:XMU-China/team
From 2014.igem.org
(Difference between revisions)
Line 273: | Line 273: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | |||
$("#gototop").hide(); | $("#gototop").hide(); | ||
- | |||
$(window).scroll(function(){ | $(window).scroll(function(){ | ||
if ($(window).scrollTop()>500) {$("#gototop").fadeIn();} | if ($(window).scrollTop()>500) {$("#gototop").fadeIn();} | ||
else {$("#gototop").fadeOut();} | else {$("#gototop").fadeOut();} | ||
}); | }); | ||
- | |||
$("#gototop").click(function(){ | $("#gototop").click(function(){ | ||
$('body,html').animate({scrollTop:0},500); | $('body,html').animate({scrollTop:0},500); | ||
Line 296: | Line 293: | ||
diffY = document.documentElement.scrollTop; | diffY = document.documentElement.scrollTop; | ||
else if (document.body) | else if (document.body) | ||
- | diffY = document.body.scrollTop; | + | diffY = document.body.scrollTop; |
else | else | ||
{/*Netscape stuff*/} | {/*Netscape stuff*/} | ||
//alert(diffY); | //alert(diffY); | ||
- | percent=.1*(diffY-lastScrollY); | + | percent=.1*(diffY-lastScrollY); |
if(percent>0) | if(percent>0) | ||
- | percent = Math.ceil(percent); | + | percent = Math.ceil(percent); |
else | else | ||
- | percent = Math.floor(percent); | + | percent = Math.floor(percent); |
document.getElementById("gototop").style.top = parseInt(document.getElementById("gototop").style.top)+percent+"px"; | document.getElementById("gototop").style.top = parseInt(document.getElementById("gototop").style.top)+percent+"px"; | ||
lastScrollY = lastScrollY+percent; | lastScrollY = lastScrollY+percent; | ||
} | } | ||
- | window.setInterval("backTop()",50); | + | window.setInterval("backTop()",50); |
</script> | </script> | ||
Revision as of 12:00, 1 October 2014
-
E.Taxis
Our team
Try to click on me in the Picture !
Team member
Jianxing Huang
sdadsaddsdsadada
ddsdasdsadasdsdadadsdadsdsdadeqwesdsadasd
wesadaaa
czxcsdseqwedasdad
weqwdsafadaeqwesdasdadsaddsdsadadaddsdasdsadasdsdadadsdadsdsdadeqwesdsadasdwesadaa
aczxcsdseqwedasdadweqwdsafadaeqwesda
Xifeng Guo
daaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeewwwwwwwwwwwwwww
dsadasddaddwwqeqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
dadwewqweadasdasdasdasdsdewqeqeqeqwe
Chun Tang
daaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeewwwwwwwwwwwwwww
dsadasddaddwwqeqwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
dadwewqweadasdasdasdasdsdewqeqeqeqwe
Chun Tang
Chun Tang
Chun Tang
Chun Tang
Chun Tang
Chun Tang
Chun Tang
Chun Tang
Chun Tang
Chun Tang
Chun Tang
Chun Tang
Chun Tang
Chun Tang
-
Sponsor