radio 隐藏 显示层
<!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=utf-8" />
<title>无标题文档</title>
</head>
<body>
?
?
?
<td align="left"><input name="radiobutton" type="radio" value="1" checked="checked" onclick="showDiv('1')" />
??????????????? 剑特</td>
??????????? </tr>
??????????? <tr>
????????????? <td align="left"><input type="radio" name="radiobutton" value="2"? onclick="showDiv('2')"/>
??????????????? 豪杰</td>
??????????? </tr>
??????????? <tr>
????????????? <td align="left"><input type="radio" name="radiobutton" value="3" onclick="showDiv('3')" />
??????????????? 阴阳术</td>
??????????? </tr>
??????????? <tr>
????????????? <td align="left"><input type="radio" name="radiobutton" value="4" onclick="showDiv('4')" />
??????????????? 仙术士</td>
??????????? </tr>
?
?
<div id="pic4" style="display:none"><img src="/jszy_07.jpg" width="616" height="200" />4</div>
<div id="pic3" style="display:none"><img src="/jszy_05.jpg" width="617" height="201" />3</div>
<div id="pic2" style="display:none"><img src="/jszy_03.jpg" width="617" height="188" />2</div>
<div id="pic1"><img src="/jszy_01.jpg" width="617" height="214" />1</div>
<script type="text/javascript">
function showDiv(id)
{
? for(var i=1;i<=4;i++)
? {
????? if(i==id)
?? {
?????? document.getElementById("pic"+id).style.display="block";
?? }
?? else
?? {
????
?????? document.getElementById("pic"+i).style.display='none';
?? }
? }
}
?
</script>
</body>
</html>