﻿<!--
function clock(){
if (!document.all&&!document.getElementById)
return
target=document.getElementById? document.getElementById("showclock"): document.all.showclock
var mydate=new Date()
var year=mydate.getYear()
var month=mydate.getMonth()+1
var daym=mydate.getDate()
var day=mydate.getDay()
var hour=mydate.getHours()
var minute=mydate.getMinutes()
var second=mydate.getSeconds()
var dayarray=new Array("日","一","二","三","四","五","六")
if (month<10)
month="0"+month
if (daym<10)
daym="0"+daym
if (hour<10)
hour="0"+hour
if (minute<10)
minute="0"+minute
if (second<10)
second="0"+second
target.innerHTML=year+"年"+month+"月"+daym+"日 "+hour+":"+minute+":"+second+" 星期"+dayarray[day]
setTimeout("clock()",1000)
}
document.onload=clock()
//-->