这是一个较为简单的撞墙游戏
时间:2006-03-17 来源:22/2
要完成此效果需要两个步骤
第一步:把如下代码加入到<body>区域中
<center>
<center>
<table border=0 bordercolor=#000000 borderlight=green>
<tr>
<td align=center><font size=4 color=red face="Arial, Helvetica, sans-serif"></font></td>
</tr><tr><td align=center>
<FORM NAME="myForm" >
<TEXTAREA NAME="text3" ROWS=16 COLS=34 WRAP>
[游戏区域]
</TEXTAREA>
<br>
<font color="#33FF33">Score: </font>
<INPUT TYPE="text" NAME="score" SIZE=10 VALUE=0>
<p> <a href="#" onMouseOver="u = 0"><font color="#33FF33">0</font></a> <font
color="#33FF33"><a href="#" onMouseOver="u = 1">1</a>
<a href="#" onMouseOver="u = 2">2</a> <a href="#" onMouseOver="u = 3">3</a>
<a href="#" onMouseOver="u = 4">4</a> <a href="#" onMouseOver="u = 5">5</a>
<a href="#" onMouseOver="u = 6">6</a> <a href="#" onMouseOver="u = 7">7</a>
<a href="#" onMouseOver="u = 8">8</a> <a href="#" onMouseOver="u = 9">9</a>
<a href="#" onMouseOver="u = 10">10</a> <a href="#" onMouseOver="u = 11">11</a>
<a href="#" onMouseOver="u = 12">12</a> <a href="#" onMouseOver="u = 13">13</a>
<a href="#" onMouseOver="u = 14">14</a> <a href="#" onMouseOver="u = 15">15</a>
</font><BR>
<BR>
<INPUT TYPE="button" NAME="Button1" VALUE="[开始游戏]" onCLick="startclock(this.form)">
</FORM>
</td></tr>
</table></center>
<br>
<center>
</center>
第二步:把“OnLoad="initgame()"”加在<body>标记里
例如:<body OnLoad="initgame()">