<div id="d">
<script language="javascript">
function mytime()
{
var d, s="";
d=new Date();
s+=d.getYear()+"年";
s+=(d.getMonth()+1)+"月";
s+=d.getDate()+"日,星期";
s+="日一二三四五六".substr(d.getDay(), 1)+",";
s+=d.getHours()+":";
s+=d.getMinutes()+":";
s+=d.getSeconds();
document.getElementById("d").innerText=s;
setTimeout("mytime()",1000);
}
window.onload=mytime
</script>