Team:Tsinghua-E/Template
From 2013.igem.org
(Difference between revisions)
(11 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | + | <html> | |
- | <html | + | |
<style type="text/css"> | <style type="text/css"> | ||
- | |||
- | |||
- | |||
- | |||
- | # | + | #totop{ |
- | # | + | position: fixed; |
+ | bottom: 15px; | ||
+ | right: 15px;} | ||
+ | #totop li | ||
{ | { | ||
- | width: | + | width: 100px; |
- | height: | + | height: 106px; |
padding: 0; | padding: 0; | ||
overflow: hidden; | overflow: hidden; | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
display: block; | display: block; | ||
float: left; | float: left; | ||
} | } | ||
- | |||
</style> | </style> | ||
- | |||
<div> | <div> | ||
- | <ul id=" | + | <ul id="totop"> |
- | <li onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="NaviTotop();"> | + | <li onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="NaviTotop();"> |
- | <img src="/wiki/images/ | + | <img src="/wiki/images/a/a3/Flytotop.png" alt="Totop" /> |
- | + | ||
</li> | </li> | ||
</ul> | </ul> | ||
</div> | </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() | function NaviTotop() | ||
{ | { | ||
Line 50: | Line 57: | ||
} | } | ||
+ | </script> | ||
+ | </html> | ||
- | + | {{Team:Tsinghua-E/Template}} | |
+ | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
+ | <style type="text/css"> | ||
+ | #content{height:3800px;} | ||
+ | p{font-size:120%} | ||
+ | .memberx {position:absolute;top:60px;left:5px;height:215px;width;300px;} | ||
+ | .memberx span{z-index:50;position:relative;width:453px;display:block;top:-215px;left:305px;color:#000000} | ||
+ | </style> | ||
<div class="tmc" style="height:3685px;"> | <div class="tmc" style="height:3685px;"> |
Latest revision as of 18:39, 27 September 2013