<framset name="stefli" cols="100,12,*"  ..>
<frame left...>
<frame bar...>
<frame main...>
</frameset>abr.asp
----------------
一个button按钮,起到开关作用
if(parent.frames.stefli.cols=="100,12,*")
{
parent.frames.stefli.cols="0,12,*";
}
else
{
parent.frames.stefli.cols=100,12,*";
}大概就是这个意思~修改cols值~

解决方案 »

  1.   

    var hide1=new Image()
    var hide2=new Image()
    hide1.src="images/hidetoc1.gif"
    hide2.src="images/hidetoc2.gif"
    function hideon(o,flag){
    o.src=flag?hide2.src:hide1.src
    }
    function hide(){
    parent.document.all.main.cols='0,*'
    parent.rightFrm.document.all.hideTip.style.display='none'
    parent.rightFrm.document.all.showTip.style.display='block'
    }
    function showTree(){
    parent.document.all.main.cols='180,*'
    parent.rightFrm.document.all.showTip.style.display='none'
    parent.rightFrm.document.all.hideTip.style.display='block'
    }
    top.document.all.main.cols='0,*';top.rightFrm.document.all.hideTip.style.display='none';top.rightFrm.document.all.showTip.style.display='block' //关闭左菜单
      

  2.   

    http://community.csdn.net/Expert/topic/3241/3241399.xml?temp=.7965052
      

  3.   

    隐藏是:<xxx id="yy" style="display:none">
    显示是:<xxx id="yy" style="display:block">
    当点击的时候来个 yy.style.display="blcok"
    就可以实现了。CSDN里是框架的显示与隐藏。