作者在 2006-09-03 06:32:00 发布以下内容
<script language="Javascript">
function btn_OK_Click()
{
if(this.HideRadio[0].checked)
this.MDiv.style.display="block";
else
this.MDiv.style.display="none";
}
</script>
<input type="radio" name="HideRadio" value="ON" >显示
<input type="radio" name="HideRadio" value="OFF" >隐藏
<input type="button" name="btn_OK" onClick="btn_OK_Click();" value="确定" >
<div id="MDiv"><img src="aaa/asplogo1.gif"></div>
<div id="hehe">hehe</div>
function btn_OK_Click()
{
if(this.HideRadio[0].checked)
this.MDiv.style.display="block";
else
this.MDiv.style.display="none";
}
</script>
<input type="radio" name="HideRadio" value="ON" >显示
<input type="radio" name="HideRadio" value="OFF" >隐藏
<input type="button" name="btn_OK" onClick="btn_OK_Click();" value="确定" >
<div id="MDiv"><img src="aaa/asplogo1.gif"></div>
<div id="hehe">hehe</div>