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 = " | + | document.getElementById('DAYS').innerHTML = dd+" days"; |
- | document.getElementById('HRS').innerHTML = " | + | document.getElementById('HRS').innerHTML = hh+" hours"; |
- | document.getElementById('MINS').innerHTML = " | + | document.getElementById('MINS').innerHTML = mm+" minutes"; |
- | document.getElementById('SECS').innerHTML = " | + | document.getElementById('SECS').innerHTML = ss+" seconds"; |
setTimeout('tick()', 1000); | setTimeout('tick()', 1000); | ||
} | } | ||
- | document.write("<div id='DAYS'></div> | + | document.write("<div id='DAYS'></div>, <div id='HRS'></div>, <div id='MINS'></div>, <div id='SECS'></div>\n"); |
- | + | ||
- | + | ||
- | + | ||
tick(); | tick(); | ||
</SCRIPT> | </SCRIPT> | ||
</html> | </html> |
Revision as of 01:05, 28 September 2010