那位有时间给完善一下,现在是电脑出的是英文,把电脑出的换成图
[code=JScript] [ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
 <SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function playGame(choice) {
with (document.game) {
comp = Math.round((Math.random() * 2) + 1); 
var choicename;
if (comp == 1) choicename = <img src="photo/rock.gif" width=29 height=23 border=0>;
if (comp == 2) choicename = <img src="photo/paper.gif" width=29 height=23 border=0>;
if (comp == 3) choicename = <img src="photo/scissors.gif" width=29 height=23 border=0>;
//msg.value = 'The computer chose ' + choicename + ';  ';

switch(choice) { // calculates score
case 1 : // rock
 if (comp == 1) {  draw.value++; msg.value += 'It is a draw.'; break; }
 if (comp == 2) {  loss.value++;  msg.value += 'You lost!';     break; }
 if (comp == 3) {  win.value++; msg.value += 'You won!';      break; }
case 2 : // paper
 if (comp == 1) {  win.value++;  msg.value += 'You won!';      break; }
 if (comp == 2) {  draw.value++; msg.value += 'It is a draw.'; break; }
 if (comp == 3) {  loss.value++; msg.value += 'You lost!';     break; }
case 3 : // scissors
 if (comp == 1) {  loss.value++;  msg.value += 'You lost!';     break; }
 if (comp == 2) {  win.value++; msg.value += 'You won!';      break; }
 if (comp == 3) {  draw.value++; msg.value += 'It is a draw.'; break; }
  }
  msg.value += '  Go again!';
   }
}
//  End -->
</script>

<body>
<form name=game>
<table border=1 cellpadding=5>
<tr>
<td align=center>请选择你用:</td>
<td align=center><a href="javascript:void(0);" onClick="playGame(1);"><img src="photo/rock.gif" width=29 height=23 border=0></a></td>
<td align=center><a href="javascript:void(0);" onClick="playGame(2);"><img src="photo/paper.gif" width=29 height=23 border=0></a></td>
<td align=center><a href="javascript:void(0);" onClick="playGame(3);"><img src="photo/scissors.gif" width=29 height=23 border=0></a></td>
</tr>
<tr>
<td colspan=4 align=center ><input type=text name=msg size=45></td>
</tr>
<tr>
<td colspan=4 align=center>
<input type=text name=win readonly value="0" size="2"> 赢  
<input type=text name=loss readonly value="0" size="2"> 输   
<input type=text name=draw readonly value="0" size="2"> 平
</td>
</tr>
</table>
</form>

</body>
</html>
/code]