笨笨網站超級論壇 (綠色版本)


頁: [1]

#1  一星期七日顯示語 -  (Administrator) 發表於 20-5-2012 11:24

<P><FONT color=blue>&lt;script language="JavaScript"&gt;<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>// --&gt;<BR>&lt;/script&gt;</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>

#2  複製上列語法 -  (Administrator) 發表於 25-5-2013 16:15

<form name="copy">
<textarea cols="40" name="txt" rows="4" style="BACKGROUND-COLOR:#ffffff; COLOR:#000000; FONT-SIZE:9pt">
<script language="JavaScript">
now = new Date()
if (now.getDay() == 5)
document.write("終於捱到星期五"

if (now.getDay() == 6)
document.write("有局無局禮拜六"

if (now.getDay() == 0)

document.write("星期日可以訓晏D,唔使一早醒"

if (now.getDay() == 1)
document.write("星期一假期後遺症"

if (now.getDay() == 2)
document.write("星期二返工等收工"

if (now.getDay() == 3)
document.write("星期三有排無假放")

if (now.getDay() == 4)
document.write("星期四無心工作等放假")
// -->
</script>
</textarea><br>
<input onclick="javascript:this.form.txt.focus();this.form.txt.select();" type="button" value="全選">
</form>

<br>

<script type="text/javascript"><!--
google_ad_client = "ca-pub-4078143172638881";
/* 336X280 */
google_ad_slot = "3268225205";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
頁: [1]

Powered by Discuz Simply! 0.54 Released © wxyuan90