Team:USTC-China/modeling

From 2012.igem.org

(Difference between revisions)
Line 16: Line 16:
});
});
</script>
</script>
-
<script type="text/javascript">
+
 
-
function goTopEx(){
+
-
        var obj=document.getElementById("goTopBtn");
+
-
        function getScrollTop(){
+
-
                return document.documentElement.scrollTop;
+
-
            }
+
-
        function setScrollTop(value){
+
-
                document.documentElement.scrollTop=value;
+
-
            }   
+
-
        window.onscroll=function(){getScrollTop()>0?obj.style.display="":obj.style.display="none";}
+
-
        obj.onclick=function(){
+
-
            var goTop=setInterval(scrollMove,10);
+
-
            function scrollMove(){
+
-
                    setScrollTop(getScrollTop()/1.1);
+
-
                    if(getScrollTop()<1)clearInterval(goTop);
+
-
                }
+
-
        }
+
-
    }
+
-
</script>
+
     <!--this is the top menu-->
     <!--this is the top menu-->
Line 153: Line 135:
<!--the top menu-->
<!--the top menu-->
-
<div style="display: none" id="goTopBtn"><img border=0 src="https://static.igem.org/mediawiki/2012/b/b5/Shang.gif" ></div>
+
<div class="returnTop" show="true" style="visibility: visible; zoom: 1; opacity: 1; ">
-
<script  type="text/javascript">goTopEx();</script>
+
<a href="#top">backtotop</a></div>

Revision as of 15:02, 11 September 2012

MODELING

write your content here