Team:OUC-China
From 2012.igem.org
(Difference between revisions)
Line 23: | Line 23: | ||
<body> | <body> | ||
<img style="margin-left:400px;margin-top:150px;" src="https://static.igem.org/mediawiki/2012/0/03/OUC-China.ready.png"/> | <img style="margin-left:400px;margin-top:150px;" src="https://static.igem.org/mediawiki/2012/0/03/OUC-China.ready.png"/> | ||
+ | <p>离2008北京奥运会开幕还有<span id="_lefttime" style="color:red;font-size:18pt;"></span></p> | ||
+ | <script lang="JavaScript"> | ||
+ | function _fresh() | ||
+ | { | ||
+ | var endtime=new Date("February 29, 2012 16:28:00"); | ||
+ | var nowtime = new Date(); | ||
+ | var leftsecond=parseInt((endtime.getTime()-nowtime.getTime())/1000); | ||
+ | if(leftsecond<0){leftsecond=0;} | ||
+ | __d=parseInt(leftsecond/3600/24); | ||
+ | __h=parseInt((leftsecond/3600)%24); | ||
+ | __m=parseInt((leftsecond/60)%60); | ||
+ | __s=parseInt(leftsecond%60); | ||
+ | document.getElementById("_lefttime").innerHTML=__d+"天 "+__h+"小时"+__m+"分"+__s+"秒"; | ||
+ | } | ||
+ | _fresh() | ||
+ | setInterval(_fresh,1000); | ||
+ | </script> | ||
<hr> | <hr> | ||
<p class="right">Thanks to zhihu</p> | <p class="right">Thanks to zhihu</p> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 08:28, 29 February 2012
离2008北京奥运会开幕还有
Thanks to zhihu