Clock

 

 

 


<SCRIPT language="Javascript">
 function watch() {
                 now = new Date();
                 year = now.getYear();
                 month = now.getMonth()+1;
                 day = now.getDate();
                 hour = now.getHours();
                 min = now.getMinutes();
                 sec = now.getSeconds();
                 if (hour < 10) { hour = "0"+hour };
                 if (min < 10) { min = "0"+min };
                 if (sec < 10) { sec = "0"+sec };
                 document.Today.watch.value = year+"年"+month+"月"+day+"日 "+hour+":"+min+":"+sec;
                 setTimeout('watch()',1000)
         }
</SCRIPT>

BACK>>