Template:SUSTC A 1

From 2012.igem.org

(Difference between revisions)
Line 1: Line 1:
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
 +
<SCRIPT language=JavaScript type=text/javascript src="js/jquery.js"></SCRIPT>
 +
 +
<style type=text/css>
-
<STYLE type=text/css>
 
-
<!--我们需要先把igem原网站的一些东西删掉-->
 
#globalWrapper {width: 100%;  }
#globalWrapper {width: 100%;  }
#top-section {width: 100%; height:100%; border:none;}
#top-section {width: 100%; height:100%; border:none;}
Line 20: Line 21:
-
#goTopBtn {
 
-
POSITION: fixed; TEXT-ALIGN: center; LINE-HEIGHT: 30px; WIDTH: 30px; BOTTOM: 35px; HEIGHT: 33px; FONT-SIZE: 12px; CURSOR: pointer; RIGHT: 0px; _position: absolute; _right: auto
 
-
}
 
 +
.main {position:relative;width:980px;height:4800px;margin:0 auto;padding-top:220px}
 +
#AdLayer {position:absolute;width:30px;display:none;height:71px;top:0px;right:-30px;}
 +
img {border:0;}
</style>
</style>
-
<SCRIPT type=text/javascript>
 
-
// JavaScript Document
 
-
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,5);
 
-
            function scrollMove(){
 
-
                    setScrollTop(getScrollTop()/1.1);
 
-
                    if(getScrollTop()<1)clearInterval(goTop);
 
-
                }
 
-
        }
 
-
    }
 
-
</script>
 
</head>
</head>
-
 
<body style="text-align:center">
<body style="text-align:center">
-
<DIV style="DISPLAY: none" id=goTopBtn><IMG border=0 src="https://static.igem.org/mediawiki/2012/1/1d/Lanren_top.jpg"></DIV>
+
<DIV class=main>
-
 
+
<DIV id=AdLayer><A href="#top"><IMG src="images/top1.jpg"></A></DIV>
-
 
+
</DIV>
-
<SCRIPT type=text/javascript>goTopEx();</SCRIPT>
+
<SCRIPT language=JavaScript type=text/javascript src="js/lanrentuku.js"></SCRIPT>
</body>
</body>
</html>
</html>

Revision as of 06:23, 22 September 2012