方型日曆
請按Ctrl+C複製語法至<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.write("<table bgcolor=000000><tr><td align=center><font color=FFFFFF>")
document.write(+ (today.getYear()) + "年");
document.write((today.getMonth()+1) + "月</font></td>")
document.write("<tr><td align=center colspan=2><font color=FFFFFF size=6><b>"+ today.getDate() + "</b></font><font color=FFFFFF>日 </font></td></tr>")
document.write("<td align=center bgcolor=FFFFFF><font color=000000>"+ day +"</font></td></tr>")
document.write("</table>")
</script>
*可修改文字~顏色~
|