http://expert.csdn.net/Expert/topic/1614/1614192.xml?temp=.3286859

解决方案 »

  1.   

    <frameset cols="160,*" framespacing="0" frameborder="no" id="b">    
    <frameset cols="*,8" name="leftmenu" scrolling="auto" marginwidth="0" marginheight="0"  id="c">
    <frame src="leftbar.asp" name="leftmenu" scrolling="auto" marginwidth="0" marginheight="0" id="l">
    <frame src="mid.asp"  name="leftbar" scrolling="no" marginwidth="0" marginheight="0" id="m">
    </frameset>
      <frameset rows="30,*" frameborder="NO" border="0" framespacing="0">
        <frame src="topbar.asp" name="topbar" scrolling="NO" noresize >
        <frame src="http://www.5inet.net/bbs/index.asp" name="forum_main" scrolling="auto" marginwidth="0" marginheight="0">
      </frameset>mid.asp
    ----<script>
    function hide()
    {
    var o = document.images[0];
    top.b.cols='8,*';top.c.cols='0,*';
    o.src="pic/l.gif";
    document.all.className='r';
    }
    function show()
    {
    var o = document.images[0];
    top.b.cols='160,*';top.c.cols='133,11';
    o.src="pic/r.gif";
    document.all.className='l';
    }
    function act(e)
    {
    var o = document.images[0];
    if(o.src.match("pic/r.gif")!=null)
    {
    hide();
    }
    else 
    {
    show();
    }
    }
    document.oncontextmenu=new Function('event.returnValue=false;');
    document.onselectstart=new Function('event.returnValue=false;');
    function window.onload()
    {
    if(screen.Width>800){show();}else{hide();}
    }
    </script>
    </head><body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll=no>
    <div align=left>
    <table width="10" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="10" align="left" valign="middle"><a href="#" onClick="act(this);" id="T"  title="改变框架的排列方式" class=l onMouseover="this.style.background='#B1CBFA';" onMouseOut="this.style.background='silver';"><span style="border-top:1px solid white;border-right:1px solid white;height:58px;padding-top:17px;padding-left:1px;"><img src=pic/r.gif border=0 id="O" width="4" height="7"></span></a></td>
      </tr>
    </table>
    </div>
    </body>
      

  2.   

    你这里的
    function hidetoc()
      {
      strColumns_Current = top.mainframeset.cols
      
      top.mainframeset.cols = "1,*";
      top.contentbar.document.all("showtoc").style.display = "block";
      }function showtoc()
      {
      top.mainframeset.cols = strColumns_Current;
      top.contentbar.document.all("showtoc").style.display = "none";
      }