ÑÝ
ʾ
Ô´
´ú
Âë
¡¡
FromÈÕÆÚ´øʱÖÓ
×¢ÊÍ£º·ÅÔÚ<body****>Àï
×¢ÊÍ£º·ÅÔÚ<body>Óë</body>Ö®¼ä
<script language="JavaScript"> <!-- Hide var timerID = null var timerRunning = false function MakeArray(size) { this.length = size; for(var i = 1; i <= size; i++) { this[i] = ""; } return this; } function stopclock (){ if(timerRunning) clearTimeout(timerID); timerRunning = false } function showtime () { var now = new Date(); var year = now.getYear(); var month = now.getMonth() + 1; var date = now.getDate(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds(); var day = now.getDay(); Day = new MakeArray(7); Day[0]="ÐÇÆÚÌì"; Day[1]="ÐÇÆÚÒ»"; Day[2]="ÐÇÆÚ¶þ"; Day[3]="ÐÇÆÚÈý"; Day[4]="ÐÇÆÚËÄ"; Day[5]="ÐÇÆÚÎå"; Day[6]="ÐÇÆÚÁù"; var timeValue = ""; timeValue += year + "Äê"; timeValue += ((month < 10) ? "0" : "") + month + "ÔÂ"; timeValue += date + "ÈÕ "; timeValue += (Day[day]) + " "; timeValue += ((hours <= 12) ? hours : hours - 12); timeValue += ((minutes < 10) ? ":0" : ":") + minutes; timeValue += ((seconds < 10) ? ":0" : ":") + seconds; timeValue += (hours < 12) ? "ÉÏÎç" : "ÏÂÎç"; document.jsfrm.face.value = timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true } function startclock () { stopclock(); showtime() } //--> </script> <br> <form name='jsfrm'> <input type=text name='face' size=34 value=''> </form>
µ±Ç°Î»ÖÃ:
Ê× Ò³
¡ú
JavaScript
¡ú
ÈÕÆÚʱ¼ä
¡úFromÈÕÀú´øʱÖÓ
¡¤¡¤
www
.f81.net
Ìṩ¡¤¡¤
¡¡