<script language="JavaScript">var timeStr, dateStr;var utDTime;function utclock(){now = new Date();hours = now.getHours();minutes = now.getMinutes();seconds = now.getSeconds();timeStr = "" + hours;timeStr += ((minutes < 10)?":0":":") + minutes;timeStr += ((seconds < 10)?":0":":") + seconds;date = now.getDate();month = now.getMonth() + 1;year = now.getYear();dateStr = "" + month;dateStr += ((date < 10)?"-0":"-") + date;dateStr += "-" + year;UtmostTimer.innerHTML = timeStr + " " + dateStr;Timer = setTimeout("utclock()", 1000);}Timer = setTimeout("utclock()", 1000);</script>
刚刚弄的时钟*
<b><span id="UtmostTimer"></span></b>
[此贴子已经被作者于2004-7-10 9:23:06编辑过] |