Team:Tsinghua-E/Template
From 2013.igem.org
(Difference between revisions)
(12 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
+ | <html> | ||
+ | <style type="text/css"> | ||
+ | |||
+ | #totop{ | ||
+ | position: fixed; | ||
+ | bottom: 15px; | ||
+ | right: 15px;} | ||
+ | #totop li | ||
+ | { | ||
+ | width: 100px; | ||
+ | height: 106px; | ||
+ | padding: 0; | ||
+ | overflow: hidden; | ||
+ | display: block; | ||
+ | float: left; | ||
+ | } | ||
+ | </style> | ||
+ | <div> | ||
+ | <ul id="totop"> | ||
+ | <li onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="NaviTotop();"> | ||
+ | <img src="/wiki/images/a/a3/Flytotop.png" alt="Totop" /> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | <script type="text/javascript" > | ||
+ | var PageScrollElem,PageScrollBody; | ||
+ | var PageScrollHand=null; | ||
+ | function PageScrollTotop() | ||
+ | { | ||
+ | PageScrollElem = PageScrollElem * 0.7 - 0.5; | ||
+ | PageScrollBody = PageScrollBody * 0.7 - 0.5; | ||
+ | if (PageScrollElem<=0) | ||
+ | { | ||
+ | PageScrollElem=0; | ||
+ | } | ||
+ | if (PageScrollBody<=0) | ||
+ | { | ||
+ | PageScrollBody=0; | ||
+ | } | ||
+ | if (PageScrollElem<=0){ | ||
+ | if (PageScrollBody<=0){ | ||
+ | PageScrollHand = null; | ||
+ | }} | ||
+ | if (PageScrollBody>0 || PageScrollElem>0) | ||
+ | { | ||
+ | PageScrollHand = setTimeout(PageScrollTotop,50); | ||
+ | } | ||
+ | document.documentElement.scrollTop=PageScrollElem; | ||
+ | document.body.scrollTop=PageScrollBody; | ||
+ | } | ||
+ | function NaviTotop() | ||
+ | { | ||
+ | PageScrollElem=document.documentElement.scrollTop; | ||
+ | PageScrollBody=document.body.scrollTop; | ||
+ | PageScrollTotop(); | ||
+ | } | ||
+ | |||
+ | </script> | ||
+ | </html> | ||
+ | |||
{{Team:Tsinghua-E/Template}} | {{Team:Tsinghua-E/Template}} | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
Line 7: | Line 68: | ||
.memberx span{z-index:50;position:relative;width:453px;display:block;top:-215px;left:305px;color:#000000} | .memberx span{z-index:50;position:relative;width:453px;display:block;top:-215px;left:305px;color:#000000} | ||
</style> | </style> | ||
- | |||
- | |||
<div class="tmc" style="height:3685px;"> | <div class="tmc" style="height:3685px;"> |
Latest revision as of 18:39, 27 September 2013