Template:Osaka countdown

From 2010.igem.org

(Difference between revisions)
Line 15: Line 15:
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>

Revision as of 01:08, 28 September 2010