#1 一星期七日顯示語 - 蛙 (Administrator) 發表於 20-5-2012 11:24
<P><FONT color=blue><script language="JavaScript"><BR>now = new Date()<BR>if (now.getDay() == 5)<BR>document.write("終於捱到星期五"</FONT></P><P><FONT color=blue>if (now.getDay() == 6)<BR>document.write("有局無局禮拜六"</FONT></P>
<P><FONT color=blue>if (now.getDay() == 0)</FONT></P>
<P><FONT color=blue>document.write("星期日可以訓晏D,唔使一早醒"</FONT></P>
<P><FONT color=blue>if (now.getDay() == 1)<BR>document.write("星期一假期後遺症"</FONT></P>
<P><FONT color=blue>if (now.getDay() == 2)<BR>document.write("星期二返工等收工"</FONT></P>
<P><FONT color=blue>if (now.getDay() == 3)<BR>document.write("星期三有排無假放")</FONT></P>
<P><FONT color=blue>if (now.getDay() == 4)<BR>document.write("星期四無心工作等放假")<BR>// --><BR></script></FONT></P>
<P><FONT color=blue></FONT> </P>
<P><FONT color=blue></FONT> </P>
<P><FONT color=blue><FONT color=purple>星期一至日展現文字可以隨意更改</FONT></FONT></P>
<P><FONT color=blue><FONT color=#800080></FONT></FONT> </P>
<P><FONT color=blue><FONT color=#800080></FONT></FONT> </P><FONT color=blue>
<P><FONT color=#0000ff size=3>如不能顯示語法效果可貼去本站</FONT><A href="http://www.bunbunhk.com/cgi-bin/html/index.htm" target=_blank><FONT color=red size=3>語法測試板</FONT></A><FONT color=#0000ff size=3>試看</FONT></P>
<P><BR></FONT><BR></P>