选择单选框变改背景颜色。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>变颜色</title>
</head>
<body>
<script language="vbscript">
dim aa
sub aa(i)
if i=1 then
document.background='#FF0000'
end if
end sub
</script>
<form id="form1" name="form1" method="post" action="">
<table width="500" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="26"><input name="radiobutton" type="radio" onclick="aa(this)" value="1" /></td>
<td width="71">黑色</td>
<td width="20"><input type="radio" name="radiobutton" value="2" /></td>
<td width="77">蓝色</td>
<td width="24"><input type="radio" name="radiobutton" value="3" /></td>
<td width="73">红色</td>
<td width="23"><input type="radio" name="radiobutton" value="4" /></td>
<td width="77">黄色</td>
<td width="21"><input type="radio" name="radiobutton" value="5" /></td>
<td width="88">绿色</td>
</tr>
</table>
</form>
</body>
</html>