你用这个试试看
<button onclick="parent.framesetName(是frameset的名称).cols='0,*'">display</button>

解决方案 »

  1.   

    你可以试试下面的代码
    主页面html
    <html>
    <head>
    <title> New Document </title>
    <frameset rows="50%,*" frameborder="NO" framespacing=0 id="parentFrame">
    <frame name="totalFrame" marginWidth=0 src="a.html" marginHeight=0 frameBorder=NO framespacing=0  scrolling=no>
    <frame name="yewuFrame" marginWidth=0 marginHeight=0 src="jsps/yewu.jsp" frameBorder=NO framespacing=0  scrolling=no >
    </frameset>
    </head>
    <body bgcolor="#FFFFFF">
    </body>
    </html>左页面a.html
    <html>
    <head>
    <title> New Document </title>
    </head>
    <body bgcolor="#FFFFFF">
    <button onclick="parent.parentFrame.cols='0,*'">display</button>
    </body>
    </html>
      

  2.   

    同意上面的,
    其实就是将他的cols=0就行了
      

  3.   

    我在左界面上加了下面代码,为了关闭后还能打的开,为什么不行呢?<SCRIPT language=javascript>
    function switchSysBar(){
    if (switchPoint.innerText==3){
    switchPoint.innerText=4
    document.all("mnuList").style.display="none"
    top.content.cols="16,*"
    }
    else{
    switchPoint.innerText=3
    document.all("mnuList").style.display=""
    top.content.cols="166,*"
    }
    }
    </SCRIPT>
    <TD align=middle vAlign=center bgcolor="#CCCCCC"><SPAN class=np id=switchPoint 
    title=打开/关闭导航onclick=switchSysBar()>3</SPAN></TD>