<div class="codetitle"> <span><a style="CURSOR: pointer" data="76549" class="copybut" id="copybut76549" onclick="doCopy('code76549')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code76549"> <br> <br><boby> <br> <br> <br><boby> <br> <br><br><script language="javascript"> <BR>window.onload = function(){ <br>var arr = ["太陽光大、父母恩大、君子量大、小人氣大", "成功是優點的發揮,失敗是缺點的累積","不要小看自己,因為人有無限的可能", <br>"口說好話、心想好意、身行好事","原諒別人就是善待自己","手心向下是助人,手心向上是求人;助人快樂,求人痛苦" <BR>]; <br><br>var index = Math.floor((Math.random()*arr.length) ); <BR>alert(arr[index]); <BR><BR>} </script></boby></boby> </div>