ASP的编程问题
<%player=request("choice")
if player=1 or player=2 or player=3 then
select case player
case 1
mychoice="石头"
case 2
mychoice="剪子"
case 3
mychoice="布"
end select
randomize
Computer=int(rnd*3)+1
select case Computer
case 1
choice="石头"
case 2
choice="剪子"
case 3
choice="布"
end select
if player-Computer=0 then
pp="平手!"
elseif player-Computer=-1 or player-Computer=2 then
pp="恭喜你,你赢了!"
else
pp="这次电脑赢了!"
end if
end if
%>
<html>
<title>石头、剪子、布小游戏</title>
<body> <Center>
<table border=1 align=center >
<COL span=2 width=100>
<tr align=center><td>玩家<td>电脑
<tr align=center><td><%=mychoice%><td><%=choice%></tr>
<tr align=center><td colspan=2><%=pp%></tr>
</table>
<hr>
<form action=lx8_3.asp method=post name=f1>请选择:
<input type=radio name=choice value=1>石头
<input type=radio name=choice value=2>剪子
<input type=radio name=choice value=3>布<p>
<script for=choice event=onclick language=vbscript>
f1.submit
</script>
</form>
</body>
</html>
谁能说一下,这个代码
<tr align=center><td><%=mychoice%><td><%=choice%></tr>
<tr align=center><td colspan=2><%=pp%></tr>,是什么意思啊?为什么加<% %>啊/还有啊<script for=choice event=onclick language=vbscript>
f1.submit
</script>
为什么用<script>标记,而不用<% %>标记呢?