close

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)
Views: 537 | Added by: ystyle | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Sign Up | Log In ]