Template:Osaka countdown

From 2010.igem.org

(Difference between revisions)
(New page: <html> <style> #cd { width: 0px; height: 0px; margin: auto; padding: 0px; font-size: 0pt; //hides the ugly output from external php file since i cant modify it } </style> <SCRIPT type="t...)
Line 15: Line 15:
function tick()
function tick()
{
{
-
     document.getElementById('DAYS').innerHTML = "Days left: "+dd;
+
     document.getElementById('DAYS').innerHTML = dd+" days";
-
     document.getElementById('HRS').innerHTML = "Hours left: "+hh;
+
     document.getElementById('HRS').innerHTML = hh+" hours";
-
     document.getElementById('MINS').innerHTML = "Minutes left: "+mm;
+
     document.getElementById('MINS').innerHTML = mm+" minutes";
-
     document.getElementById('SECS').innerHTML = "Seconds left: "+ss;
+
     document.getElementById('SECS').innerHTML = ss+" seconds";
     setTimeout('tick()', 1000);
     setTimeout('tick()', 1000);
}
}
-
document.write("<div id='DAYS'></div>\n");
+
document.write("<div id='DAYS'></div>, <div id='HRS'></div>, <div id='MINS'></div>, <div id='SECS'></div>\n");
-
document.write("<div id='HRS'></div>\n");
+
-
document.write("<div id='MINS'></div>\n");
+
-
document.write("<div id='SECS'></div>\n");
+
tick();
tick();
</SCRIPT>
</SCRIPT>
</html>
</html>

Revision as of 01:05, 28 September 2010