Team:XMU-China/team

From 2014.igem.org

(Difference between revisions)
Line 284: Line 284:
  });
  });
</script>
</script>
-
<script type="text/javascript" async="" src="https://2014.igem.org/Team:XMU-China/main_js&action=raw&amp;ctype=text/javascript"></script>
+
<script type="text/javascript">
 +
      lastScrollY = 0;
 +
      function backTop(){
 +
        var diffY;
 +
        if (document.documentElement && document.documentElement.scrollTop)
 +
          diffY = document.documentElement.scrollTop;
 +
        else if (document.body)
 +
          diffY = document.body.scrollTop;  //获取网页被卷去的高度
 +
        else
 +
          {/*Netscape stuff*/}
 +
          //alert(diffY);
 +
        percent=.1*(diffY-lastScrollY);  //获取滚动的百分比
 +
        if(percent>0)
 +
    percent = Math.ceil(percent); //百分比向上类型转换
 +
        else 
 +
    percent = Math.floor(percent);  //百分比向下类型转换
 +
        document.getElementById("gototop").style.top = parseInt(document.getElementById("gototop").style.top)+percent+"px";
 +
        lastScrollY = lastScrollY+percent;
 +
      }
 +
        window.setInterval("backTop()",50); //这里的50表示50毫秒执行一次这个函数
 +
</script>
 
 

Revision as of 13:32, 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