Template:Osaka countdown

From 2010.igem.org

(Difference between revisions)
 
(3 intermediate revisions not shown)
Line 9: Line 9:
</style>
</style>
-
<SCRIPT type="text/javascript" SRC="http://www.minisitegallery.com/2020/countdown.php?timezone=US/Eastern&countto=2010-11-05 00:00:00&do=t&data=iGEM 2010 Jamboree">
+
<script type="text/javascript" src="http://www.minisitegallery.com/2020/countdown.php?timezone=US/Eastern&countto=2010-11-06 00:00:00&do=t&data=Jamboree is NOW">
-
</SCRIPT>
+
</script>
-
<SCRIPT type="text/javascript">
+
<script type="text/javascript">
function tick()
function tick()
{
{
-
     document.getElementById('DAYS').innerHTML = dd+" days";
+
     document.getElementById('DAYS').innerHTML = dd;
-
     document.getElementById('HRS').innerHTML = hh+" hours";
+
     document.getElementById('HRS').innerHTML = hh;
-
     document.getElementById('MINS').innerHTML = mm+" minutes";
+
     document.getElementById('MINS').innerHTML = mm;
-
     document.getElementById('SECS').innerHTML = ss+" seconds";
+
     document.getElementById('SECS').innerHTML = ss;
     setTimeout('tick()', 1000);
     setTimeout('tick()', 1000);
}
}
-
document.write("<div id='DAYS'></div>, <div id='HRS'></div>, <div id='MINS'></div>, <div id='SECS'></div>\n");
+
document.write("<span id='DAYS'></span> days, <span id='HRS'></span> hours, <span id='MINS'></span> minutes & <span id='SECS'></span> seconds");
tick();
tick();
-
</SCRIPT>
+
</script>
</html>
</html>

Latest revision as of 00:35, 13 October 2010