- 论坛徽章:
- 0
|
<html>
<body>
<script>
function setTab(name,cursel,n){
for(i=1;i<=n;i++){
//var menu=document.getElementById(name+i);
var con=document.getElementById("con_"+name+"_"+i);
//menu.className=i==cursel?"hover":"";
con.style.display=i==cursel?"block":"none";
}
if(document.getElementById("paythree1").checked==true){
document.getElementById("dipselect").style.display="none";
}
if(document.getElementById("paythree2").checked==true){
document.getElementById("dipselect").style.display="block";
}
}
</script>
<form>
<input type="radio" name="abc" id="paythree1" onClick="setTab('paythree',1,2)">TEST1
<input type="radio" name="abc" id="paythree2" onClick="setTab('paythree',2,2)">TEST2
<div id="con_paythree_1">
<input type="radio" name="aaa">aaa
<input type="radio" name="aaa">bbb
<input type="radio" name="aaa">ccc
</div>
<div id="con_paythree_2" style="display:none">
<input type="radio" name="bbb" onClick="setTab('paydays',1,3)">ddd
<input type="radio" name="bbb" onClick="setTab('paydays',2,3)">fff
<input type="radio" name="bbb" onClick="setTab('paydays',3,3)">ggg
</div>
<div id="dipselect">
<div id="con_paydays_1"style="display:none">
请选择:<select name=select >
<option value="1" selected>一</option>
<option value="2" selected>二</option>
<option value="3" selected>三</option>
</select>
<br>
</div>
<div id="con_paydays_2"style="display:none">
请选择:<select name=select >
<option value="1" selected>三</option>
<option value="2" selected>五</option>
<option value="3" selected>七</option>
</select>
<br>
</div>
<div id="con_paydays_3"style="display:none">
请选择:<select name=select >
<option value="1" selected>四</option>
<option value="2" selected>六</option>
<option value="3" selected>八</option>
</select>
<br>
</div>
</div>
</form>
</body>
</html>
|
|
|