Welcome to the Bravenet Resource Center. Use these resources to help make your web pages more advanced and fun to use.
by Daniel Insleyemail this article
var time = new Date()
var hours = time.getHours()
var minutes = time.getMinutes()
var seconds = time.getSeconds()
var abbrev = "AM"
var ctime=""+hours+":"+minutes+":"+seconds+" "+abbrev+""
else if (document.getElementById)
With that in the HEAD section of your website, place onLoad="loadtime()" inside your body tag like shown, but don't add the body tag if you already have a body tag!
Finally, add this empty span to where you would like the clock to show up in your website:
The span can be style with CSS to be visually enhanced. Save your changes and enjoy your new clock!