/* http://greentooth.xtgem.com */ var imageclock=new Object() //Enter path to clock digit images here, in order of 0-9, then "am/pm", then colon image: imageclock.digits=["http://greentooth.xtgem.com/t/y/g0.png", "http://greentooth.xtgem.com/t/y/g1.png", "http://greentooth.xtgem.com/t/y/g2.png", "http://greentooth.xtgem.com/t/y/g3.png", "http://greentooth.xtgem.com/t/y/g4.png", "http://greentooth.xtgem.com/t/y/g5.png", "http://greentooth.xtgem.com/t/y/g6.png", "http://greentooth.xtgem.com/t/y/g7.png", "http://greentooth.xtgem.com/t/y/g8.png", "http://greentooth.xtgem.com/t/y/g9.png", "http://greentooth.xtgem.com/t/y/am.png", "http://greentooth.xtgem.com/t/y/pm.png", "http://greentooth.xtgem.com/t/y/c.png"] imageclock.instances=0 var preloadimages=[] for (var i=0; i=13) sections[0]=sections[0]-12+"" for (var i=0; i'+'' else sections[i]=''+'' } return sections[0]+''+sections[1]+''+sections[2] } imageclock.display=function(){ var clockinstance=this this.spanid="clockspan"+(imageclock.instances++) document.write('') this.update() setInterval(function(){clockinstance.update()}, 1000) } imageclock.display.prototype.update=function(){ var dateobj=new Date() var currenttime=dateobj.getHours()+":"+dateobj.getMinutes()+":"+dateobj.getSeconds() //create time string var currenttimeHTML=imageclock.imageHTML(currenttime)+'' document.getElementById(this.spanid).innerHTML=currenttimeHTML }