如不能顯示語法效果可貼去本站語法測試板試看
<script language="JavaScript">
var enabled = 0; today = new Date();
var day; var date;
if(today.getDay()==0) day = "星 期 日"
if(today.getDay()==1) day = "星 期 一"
if(today.getDay()==2) day = "星 期 二"
if(today.getDay()==3) day = "星 期 三"
if(today.getDay()==4) day = "星 期 四"
if(today.getDay()==5) day = "星 期 五"
if(today.getDay()==6) day = "星 期 六"
document.fgColor = "000066";
date = " 西元 " + (today.getYear()-11) + " 年"+ (today.getMonth() + 1 ) + " 月 " + today.getDate() + " 日 " + day +"";
document.write("<TABLE BORDER=0 width=80 cellspacing=0 cellpadding=0 bgcolor=#B0D0F8><TR><TD ALIGN=CENTER><FONT COLOR=000066>")
document.write(+ (today.getYear()) + "年");
document.write((today.getMonth()+1) + "月</FONT></TD></TR>")
document.write("<TR><TD ALIGN=CENTER><FONT SIZE=6 FACE=ARIAL COLOR=000066><b>"+ today.getDate() + "</b></FONT><FONT COLOR=000066> 日 </FONT></TD></TR>")
document.write("<TR><TD ALIGN=CENTER bgcolor=000066><FONT COLOR=ffff00>"+ day +"</FONT></TD></TR>")
document.write("</TABLE>")
</script>