一个radio不控制不了的:)
a.html内容:
<script>
function ch(bz){
if(bz){
frames['upload1'].dis.style.display='block';
cc.checked=true;
}else{
frames['upload1'].dis.style.display='none';
cc.checked=false;
}
}
function chx(){
if(event.srcElement.checked){
frames['upload1'].dis.style.display='block';
aa.checked=true;
}else{
frames['upload1'].dis.style.display='none';
bb.checked=true;
}
}
</script>
<input type=radio id=aa name=a1 onclick='ch(1)' checked>显示
<input type=radio id=bb name=a1 onclick='ch(0)'>不显示
<input type=checkbox id=cc onclick=chx() checked>显示
<iframe id = 'upload1' src='b.htm'></iframe>
b.htm内容:
<div id=dis>你好,看见了吗:)</div>
a.html内容:
<script>
function ch(bz){
if(bz){
frames['upload1'].dis.style.display='block';
cc.checked=true;
}else{
frames['upload1'].dis.style.display='none';
cc.checked=false;
}
}
function chx(){
if(event.srcElement.checked){
frames['upload1'].dis.style.display='block';
aa.checked=true;
}else{
frames['upload1'].dis.style.display='none';
bb.checked=true;
}
}
</script>
<input type=radio id=aa name=a1 onclick='ch(1)' checked>显示
<input type=radio id=bb name=a1 onclick='ch(0)'>不显示
<input type=checkbox id=cc onclick=chx() checked>显示
<iframe id = 'upload1' src='b.htm'></iframe>
b.htm内容:
<div id=dis>你好,看见了吗:)</div>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货