<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>游戏</title>
</head>
<body>
<p align="center"><font size="8"><b> 欢迎来玩石头剪刀布游戏!</b></font></p>
<p align="center"><font size="8"><b>Good Luck!</b></font></p>
<br>
<br>
<br>
<p align="center"><font size="4"><b>您想出什么?请选择:</b></font></p>
<form action="jieguo.asp" runat="server" method="post"><center>
<table>
<tr>
<td align="left"><input type="radio" name="radio" value="石头" checked>石头<br>
<input type="radio" name="radio" value="布">布<br>
<input type="radio" name="radio" value="剪刀">剪刀</td><br>
</tr>
</table>
<input type="submit" name="submit" value="开始游戏!">
</center>
</form>
</body>
</html>
还有一个
<html>
<head>
<title>无标题文档</title>
</head>
<body>
<% randomize
if (i=int(rnd*10)+1>5) then
if request.form("radio")="石头" then
response.write"<center>" & "噢,您输了!您的石头被对方的布给包住了。" & "</center>" & "<br>" & "<center>" & "您还想再玩一会儿这个游戏吗?" & "</center>"
else if request.form("radio")="布" then
response.write"<center>" & "噢,您输了!您的布被对方的剪刀给包住了。" & "</center>" & "<br>" & "<center>" & "您还想再玩一会儿这个游戏吗?" & "</center>"
else
response.write"<center>" & "噢,您输了!您的剪刀被对方的石头给包住了。" & "</center>" & "<br>" & "<center>" & "您还想再玩一会儿这个游戏吗?" & "</center>"
end if
end if
else
if request.form("radio")="石头" then
response.write"<center>" & "噢,您赢了!他出剪刀" & "</center>" & "<br>" & "<center>" & "您还想再玩一会儿这个游戏吗?" & "</center>"
else if request.form("radio")="布" then
response.write"<center>" & "噢,您赢了!他出石头" & "</center>" & "<br>" & "<center>" & "您还想再玩一会儿这个游戏吗?" & "</center>"
else
response.write"<center>" & "噢,您赢了!他出布" & "</center>" & "<br>" & "<center>" & "您还想再玩一会儿这个游戏吗?" & "</center>"
end if
end if
end if
%>
<br>
<br>
<br>
<a href="youxi.asp"><center>重来</center></a>
<a href="jieshu.asp"><center>取消</center></a>
</body>
</html>
为什么总是出现同一个结果` ` 请教~