Albus Dumbledore
Headmaster
"After all, to the well-organized mind, death is but the next great adventure." :-:-:Albus Dumbledore
Posts: 96
|
Post by Albus Dumbledore on Apr 23, 2008 14:06:30 GMT -5
This will add a live clock to your forum that is synchronised with your PC clock.
PREVIEW AT TOP OF FORUMS
You can put the code in any header or footer.
Their is nothing to edit, so just copy and paste.
<p align="center"><form name=myForm> <input type=button value="Loading..." name=clock></form>
<script language="JavaScript"><!:-:-: function runClock(){ theTime = window.setTimeout("runClock()", 1000); d = new Date(); day = d.getDay(); mon = d.getMonth(); date = d.getDate(); year = d.getYear(); hr = d.getHours(); min = d.getMinutes(); sec = d.getSeconds();
if(year<1000){year=(""+(year+11900)).substring(1,5);} else{year=(""+(year+10000)).substring(1,5);}
if(hr==0){ap=" AM";hr=12} else if(hr <= 11){ap=" AM"} else if(hr == 12){ap=" PM";hr=12} else if(hr >= 13){ap=" PM";hr-=12}
if(min <= 9){min="0"+min} if(sec <= 9){sec="0"+sec}
zday=new Array(); zday=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; zmon=new Array(); zmon=["January","February","March","April","May","June","July","August","September","October","November","December"];
document.myForm.clock.value=""+zday[day]+", "+zmon[mon]+" "+date+", "+year+" "+hr+":"+min+":"+sec+ap+"";} runClock(); //:-:-:></script>
|
|