你可以把iframe放在div 里面,通过控制div 的显示与隐藏来达到目的。

解决方案 »

  1.   

    onclick="window.frames['FrameMapStatus'].style.display='none'"
    onclick="window.frames['FrameMapStatus'].style.display=''"
      

  2.   

    sorry:<html>
    <body leftmargin="0" topmargin="0">
    <input type='button' onclick="document.all.FrameMenu.style.display='none'" value="Hidden">
    <iframe name="FrameMenu" src="FrameMenu.htm" frameBorder=1 noResize scrolling=no style=""  frameSpacing=0 target="_self" ></iframe>
    </body>
    </html>
      

  3.   

    <html>
    <body leftmargin="0" topmargin="0">
    <input type='button' onclick="document.all.FrameMenu.style.display='none'" value="Hidden">
    <input type='button' onclick="document.all.FrameMenu.style.display=''" value="Show">
    <input type='button' onclick="document.all.FrameMenu2.style.visibility='hidden'" value="Hidden">
    <input type='button' onclick="document.all.FrameMenu2.style.visibility='visible'" value="Show"><br>
    <iframe name="FrameMenu" src="FrameMenu.htm" frameBorder=1 noResize scrolling=no style=""  frameSpacing=0 target="_self" ></iframe><br>
    <iframe name="FrameMenu2" src="http://xml.sz.luohuedu.net/xml/Content.asp" frameBorder=10 noResize scrolling=no style="visibility:"  frameSpacing=0 target="_self" ></iframe><br>
    </body>
    </html>
      

  4.   

    如果在其中一个iframe,如在frametoolbar中设置按钮来设置其他的iframe的显示和隐藏,如何做呢??