Join up with the local PHHS Halo league!
Head:
<script language=”javascript”> function TIMER() { var thedate=new Date(); var thehour=thedate.getHours(); var theminute=thedate.getMinutes(); var thesecond=thedate.getSeconds(); function SETTIMES(TIMES) { if(TIMES<10) { TIMES="0" + TIMES; } return TIMES; } thesecond=SETTIMES(thesecond); theminute=SETTIMES(theminute); var Noon="AM"; if(thehour>12) { thehour=thehour-12; Noon="PM"; } var thetime=thehour+":"+theminute+":"+thesecond+" "+Noon; window.document.FORMER.BOXER.value = thetime; the_timeout= setTimeout('TIMER();',500); } </script>
Body:
<form name="FORMER"> <input type=text size=9 name="BOXER"> </form> <script language="javascript"> TIMER(); </script>
OK, pretty self explanatory. Take the head and put it in the head of the document. Then take the body and put it where you want the clock in your document. Have fun, hehe.
Current Time: Last Day of School: Countdown: