#1 簡單美觀日曆 - 蛙 (Administrator) 發表於 17-5-2012 21:03
<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>
<BR><BR><BR><BR>
<FONT color=blue>
<P><FONT color=#0000ff size=3>如不能顯示語法效果可貼去本站</FONT><A href="http://www.bunbun000.com/html/index.htm" target=_blank><FONT color=red size=3>語法測試板</FONT></A><FONT color=#0000ff size=3>試看</FONT></P></FONT>
<P><FONT color=blue></FONT> </P>
<P><FONT color=blue></FONT> </P>
<P><FONT color=blue></FONT> </P>
<P><FONT color=blue><script language="JavaScript"> <BR>var enabled = 0; today = new Date(); <BR>var day; var date; <BR>if(today.getDay()==0) day = "星 期 日" <BR>if(today.getDay()==1) day = "星 期 一" <BR>if(today.getDay()==2) day = "星 期 二" <BR>if(today.getDay()==3) day = "星 期 三" <BR>if(today.getDay()==4) day = "星 期 四" <BR>if(today.getDay()==5) day = "星 期 五" <BR>if(today.getDay()==6) day = "星 期 六" <BR>document.fgColor = "000066";<BR>date = " 西元 " + (today.getYear()-11) + " 年"+ (today.getMonth() + 1 ) + " 月 " + today.getDate() + " 日 " + day +""; <BR>document.write("<TABLE BORDER=0 width=80 cellspacing=0 cellpadding=0 bgcolor=#B0D0F8><TR><TD ALIGN=CENTER><FONT COLOR=000066>") <BR>document.write(+ (today.getYear()) + "年"); <BR>document.write((today.getMonth()+1) + "月</FONT></TD></TR>") <BR>document.write("<TR><TD ALIGN=CENTER><FONT SIZE=6 FACE=ARIAL COLOR=000066><b>"+ today.getDate() + "</b></FONT><FONT COLOR=000066> 日 </FONT></TD></TR>") <BR>document.write("<TR><TD ALIGN=CENTER bgcolor=000066><FONT COLOR=ffff00>"+ day +"</FONT></TD></TR>") <BR>document.write("</TABLE>") <BR></script></FONT><BR><BR></P>