还是那个iframe的问题,高分求救~~
<script language=javascript>
function HideObj(Obj)
{
Obj.style.display = "none";
}
function ShowObj(Obj)
{
Obj.style.display = "";
}
</script>
<table id="Tab">
<tr>
<td>这是表格内容</td>
</tr>
</table>
<input type=button onclick="HideObj(window.document.all.Tab);" value="隐藏表格">
<input type=button onclick="ShowObj(window.document.all.Tab);" value="显示表格">
<iframe id=ccc WIDTH=468 HEIGHT=60 align=center MARGINWIDTH=1 Name=ccc MARGINHEIGHT=1 HSPACE=0 FRAMEBORDER=0 SCROLLING=no src="http://ccc.ccc.ccc/index.asp">
</iframe>
现在点击 隐藏表格 就能隐藏了表格内容
我想实现的是点击iframe的内容,也能隐藏表格内容