ÑÝ
ʾ
Ô´
´ú
Âë
¡¡
FromʱÖÓ
×¢ÊÍ£º·ÅÔÚ<body****>Àï
×¢ÊÍ£º·ÅÔÚ<body>Óë</body>Ö®¼ä
<script language="JavaScript"> <!-- var timerID = null var timerRunning = false function stopclock(){ if(timerRunning) clearTimeout(timerID) timerRunning = false } function startclock(){ stopclock() showtime() } function showtime(){ var now = new Date() var hours = now.getHours() var minutes = now.getMinutes() var seconds = now.getSeconds() var timeValue = "" + ((hours > 12) ? hours - 12 : hours) timeValue += ((minutes < 10) ? ":0" : ":") + minutes timeValue += ((seconds < 10) ? ":0" : ":") + seconds if (hours>=6 && hours<=12) {timeValue += ("ÉÏÎç")} if(hours>12 && hours<=18) {timeValue += ("ÏÂÎç")} if(hours>18 && hours <=24) {timeValue +=("ÍíÉÏ")} if(hours<6) {timeValue += ("ÉîÒ¹")} document.clock.face.value = timeValue timerID = setTimeout("showtime()",1000) timerRunning = true } //--> </script> <form method="POST" name="clock"> <p> <input type="text" name="face" size="11" style="font-size: 9pt"> </p> </form>
µ±Ç°Î»ÖÃ:
Ê× Ò³
¡ú
JavaScript
¡ú
ÈÕÆÚʱ¼ä
¡úFromʱÖÓ
¡¤¡¤
www
.f81.net
Ìṩ¡¤¡¤
¡¡