today=new Date();
var hours = today.getHours();
var minutes = today.getMinutes();
var seconds = today.getSeconds();
var timeValue = "<FONT COLOR=#000000>" + ((hours >12) ? hours -12 :hours); timeValue += ((minutes < 10) ? "<BLINK><FONT COLOR=#000000>:</FONT></BLINK>0" : "<BLINK><FONT COLOR=#000000>:</FONT></BLINK>") + minutes+"</FONT></FONT>";
timeValue += (hours >= 12) ? "<FONT COLOR=#0000ff><I><B>pm</B></I></FONT>" : "<FONT COLOR=#0000ff><B><I>am</I></B></FONT>";
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]  }
var d=new initArray("<font color=#ff0000>星期日","<font color=black>星期一","<font color=#000000>星期二","<font color=#000000>星期三","<font color=#000000>星期四","<font color=#000000>星期五","<font color=#00ff00>星期六"); document.write("<font color=#ff0000>",today.getYear(),"<font color=#000000>年","<font color=#ff0000>",today.getMonth()+1,"<font color=#000000>月","<font color=#ff0000>",today.getDate(),"<font color=#000000>日 </FONT>",d[today.getDay()+1]," ",timeValue); 