Tip: you can modify some code before running
<!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><title>Single-choice buttons in javascript control explicit and hidden windows</title><meta http-equiv="content-type" content="text/html;charset=gb2312"><!--把下面代码加到<head>与</head>之间--><style type="text/css">Div {width: 491px; height: 199px; background: # F30; display: none ;}</style><script type="text/javascript">Document. onclick = function (e) {e = e | event; var oTarget = e.tar get | e. srcElement, aInput = document. getElementsByTagName ('input'); if (oTarget. tagName. toLowerCase () = 'input') {for (I = aInput. length; I --;) {aInput [I]. parentNode. children [1]. style. display = aInput [I] = oTarget? 'Block': 'none ';}}};</script></head><body><!--把下面代码加到<body>与</body>之间--><div><input type="radio" name="sname">123<div></div></div><div><input type="radio" name="sname">456<div></div></div><div><input type="radio" name="sname">789<div></div></div></body></html></td> </tr></table>
Tip: you can modify some code before running