精美實用彩色日曆

下列程式碼複製至<body>程式碼</body>之間

<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.getYear()-11) + " 年"+ (today.getMonth() + 1 ) + " 月 " + today.getDate() + " 日 " + day +"";
document.write("<TABLE BORDER=0 width=80 cellspacing=0 cellpadding=0 bgcolor=ffffff><TR><TD ALIGN=CENTER><FONT COLOR=000000>")
document.write(+ (today.getYear()) + "年");
document.write((today.getMonth()+1) + "月</FONT></TD></TR>")
document.write("<TR><TD ALIGN=CENTER><FONT SIZE=6 FACE=ARIAL COLOR=009900><b>"+ today.getDate() + "</b></FONT><FONT COLOR=000000> 日 </FONT></TD></TR>")
document.write("<TR><TD ALIGN=CENTER bgcolor=FF0000><FONT COLOR=ffffff>"+ day +"</FONT></TD></TR>")
document.write("</TABLE>")
</SCRIPT>