1、JS时钟汇总 (一)正常时间显示);document.write( ,);document.write( );document.write( );setInterval(refreshCalendarClock(),1000);/固定位置的时钟12)dn=“PM“hours=hours-12if(hours=0)hours=12if(minutes现在时间:“+hours+“:“+minutes+“:“+seconds+“ “+dn+“;if(document.layers)document.layers.liveclock.document.write(myclock)document.la
2、yers.liveclock.document.close()else if(document.all)liveclock.innerHTML=myclocksetTimeout(“show5()“,1000)/背景时钟+thistime+)document.bgclocknoshade.document.write(+thistime+)document.close()var timer=setTimeout(“clockon()“,200)/文本框里的时钟简易时钟12) ? hours - 12 : hours)timeValue += (minutes = 12) ? “ P.M.“ : “ A.M.“document.clock.face.value = timeValuetimerID = setTimeout(“showtime()“,1000)timerRunning = true/按钮时钟