panos2007-01-04 21:18 | You can paste all the code were you want the clock to appear, or you can paste the javascript in the head section of your site, makes no difference.
<script language="JavaScript">
<!-- //Supplied free
var clockID = 0;
function UpdateClock() { if(clockID) { clearTimeout(clockID); clockID = 0; }
var tDate = new Date();
document.theClock.theTime.value = "" + tDate.getHours() + ":" + tDate.getMinutes() + ":" + tDate.getSeconds(); clockID = setTimeout("UpdateClock()", 1000); } function StartClock() { clockID = setTimeout("UpdateClock()", 500); }
function KillClock() { if(clockID) { clearTimeout(clockID); clockID = 0; } }
//-->
</script>
<body onload="StartClock()" onunload="KillClock()"> <center><form name="theClock"> <input type=text name="theTime" size=8 style="border:0px;"> <form></center>
panos |
2007-05-26 21:18 | how make it show 20:01:00 www.slavianka.dk |