#1 隨機語句 - 蛙 (Administrator) 發表於 30-5-2012 09:34
<script type="text/javascript"><!--yudan_txt = new Array(4);
yudan_txt[0] = "Hello!";
yudan_txt[1] = "你好嗎!";
yudan_txt[2] = "身體健康!";
yudan_txt[3] = "萬事勝意!";
index = Math.floor(Math.random() * yudan_txt.length);
document.write(yudan_txt[index]);
// --></script>
<BR><BR><BR>
<P><FONT color=purple><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></FONT></P>
<P><FONT size=3></FONT> </P>
<P><FONT size=3></FONT> </P></FONT>
<P><FONT color=blue></FONT> </P>
<P><FONT color=blue></FONT> </P>
<P><FONT color=blue><script type="text/javascript"><!--<BR>yudan_txt = new Array(4);<BR>yudan_txt[0] = "Hello!";<BR>yudan_txt[1] = "你好嗎!";<BR>yudan_txt[2] = "身體健康!";<BR>yudan_txt[3] = "萬事勝意!";<BR>index = Math.floor(Math.random() * yudan_txt.length);<BR>document.write(yudan_txt[index]);<BR>// --></script></FONT></P>
<P><FONT color=#0000ff></FONT> </P>
<P><FONT color=#0000ff></FONT> </P>
<P><FONT color=#0000ff></FONT> </P>
<P><FONT color=purple>yudan_txt[0] = "Hello!";<BR>yudan_txt[1] = "你好嗎!";<BR>yudan_txt[2] = "身體健康!";<BR>yudan_txt[3] = "萬事勝意!";<BR> </FONT></P>
<P><FONT color=purple>以上文字可隨意更改,亦可隨意增減字句</FONT></P>
<P><FONT color=purple>但要留意new Array(4); <<< 4要跟隨加減</FONT></P>