Team:XMU-China/team

From 2014.igem.org

(Difference between revisions)
Line 290: Line 290:
       function backTop(){
       function backTop(){
         var diffY;
         var diffY;
-
         if (document.documentElement&&document.documentElement.scrollTop)
+
         if (document.documentElement && document.documentElement.scrollTop)
           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); //这里的50表示50毫秒执行一次这个函数
-
     </script>  
+
     </script>
 
 
<div id="sponsor">
<div id="sponsor">

Revision as of 12:13, 1 October 2014

Team:XMU-China

    Our team

    Group Photo

    Try to click on me in the Picture !

    Team member

Jianxing Huang

sdadsaddsdsadadaddsdasdsadasdsdadadsdadsdsdadeqwesdsadasdwesadaaaczxcsdseqwedasdad 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