今 天 日 期

控制碼內容:

<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 = "000000";
date = "
今 天 是 " + " " + (today.getMonth() + 1 ) + " 月 " + today.getDate() + " 日 " + day +"";
document.write("<CENTER><FONT COLOR=0000ff>")
document.write("<CENTER>" + date.fontsize(3) + "</CENTER>");
document.write("</FONT>")
</script>

籃色部份可自行更改