10:49 AM time |
function ShowTime() { var TimerKey var now = new Date() var Hours = now.getHours() var Minutes = now.getMinutes() var Seconds = now.getSeconds() TimeDisplay.innerText = "2009/1/5 " + ((Hours > 12) ? Hours - 12 : Hours) + ((Minutes < 10) ? ":0" : ":") + Minutes + ((Seconds < 10) ? ":0" : ":") + Seconds + ((Hours > 12) ? " PM" : " AM") TimerKey = setTimeout("ShowTime()",1000) |
|
Total comments: 0 | |