Team:Tsinghua/try

From 2010.igem.org

(Difference between revisions)
Line 15: Line 15:
<div style="width:32px;height:32px;display:block;float:left;background-image:url(https://static.igem.org/mediawiki/2010/e/e7/Rss-32x32.png);"><a href="#" title="TU Delft iGEM Team RSS" style="width:100%;height:100%;display:block;"></a></div>  
<div style="width:32px;height:32px;display:block;float:left;background-image:url(https://static.igem.org/mediawiki/2010/e/e7/Rss-32x32.png);"><a href="#" title="TU Delft iGEM Team RSS" style="width:100%;height:100%;display:block;"></a></div>  
</div>
</div>
 +
 +
 +
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
 +
<b><font color="blue">Until the Jamboree:</font>
 +
<font color="red"><span id="timeDate">载入天数...</span><span id="times">载入秒数...</span>
 +
<script type="text/javascript"><!--
 +
var now = new Date();
 +
function createtime(){
 +
 +
var grt= new Date("11/11/2010 20:00:00");
 +
 +
now.setTime(now.getTime()+250);
 +
days = (grt - now) / 1000 / 60 / 60 / 24;
 +
dnum = Math.floor(days);
 +
hours = (grt - now) / 1000 / 60 / 60 - (24 * dnum);
 +
hnum = Math.floor(hours);
 +
if(String(hnum).length ==1 ){hnum = "0" + hnum;}
 +
minutes = (grt - now) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
 +
mnum = Math.floor(minutes);
 +
if(String(mnum).length ==1 ){mnum = "0" + mnum;}
 +
seconds = (grt - now) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
 +
snum = Math.round(seconds);
 +
if(String(snum).length ==1 ){snum = "0" + snum;}
 +
 +
document.getElementById("timeDate").innerHTML = dnum+"天";
 +
document.getElementById("times").innerHTML = hnum + ":" + mnum + ":" + snum;
 +
}
 +
 +
setInterval("createtime()",250);
 +
// --></script>
 +
</font></b>

Revision as of 12:18, 9 July 2010

Follow us on:




Until the Jamboree: 载入天数...载入秒数...