看这个,经典斑竹的页子
http://www.blueidea.com/user/myhyli/

解决方案 »

  1.   

    应该这样:
    parent.document.all.mainFrameset.cols = "0,*";
      

  2.   

    哦,上面错了.
    parent.document.all.LowFrameset.cols = "0,*";
      

  3.   

    给你一个精典的例子:
    http://bbs5.163.com/tech
      

  4.   

    这里有个两层的frameset按照上面说的做了。。但还是不行
    框架文件:
    <html>
    <head>
    <title>Customer Web Manager</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <frameset name ="topframes" rows="39,*" cols="*" frameborder="YES" MARGINWIDTH="0" MARGINHEIGHT="0"  border="2" framespacing="2" bordercolor="#000000"> 
      <frame name="topFrame" scrolling="NO" src="header.asp" >
      <frameset name ="xframe" id ="xframe" cols="112,*" rows="*"   > 
        <frame name="leftFrame"  scrolling="NO"  src="left.html" bordercolor="#000000" MARGINWIDTH="0" MARGINHEIGHT="0" >
        <frame name="mainFrame" src="Login.htm" MARGINWIDTH="0" MARGINHEIGHT="0" >
      </frameset>
    </frameset>
    <noframes> 
    <body bgcolor="#FFFFFF" text="#000000">
    </body>
    </noframes> 
    </html>
    控件的top frame文件:
    <html>
    <head>
    <title>Customer Manager Header</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link rel="stylesheet" href="Style.css" type="text/css">
    <style type="text/css">
    <!--
    -->
    </style>
    </head>
    <SCRIPT LANGUAGE=javascript>
    function SHFrame(){
    parent.document.all.leftFrame.cols = "0,*";
    }
    </SCRIPT><body bgcolor="#000000" text="#FFFFFF" TOPMARGIN="0" BOTTOMMARGIN=0 LEFTMARGIN=5 RIGHTMARGIN=5>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" height="35">
      <tr> 
        <td class="MainTitle" width="35%" height="10">click</td>
        <td width="24%" height="9" valign="top"><font size="-2"></font></td>
        <td width="10%" height="10"><font size="-2"></font></td>
        <td width="20%" nowrap height="10"> 
          <div align="right"><i><font size="-1"> </font></i></div>
        </td>
        <td width="11%" nowrap height="10"> 
          <div align="left"><font size="-1"> </font></div>
        </td>
      </tr>
      <tr> 
        <td  width="35%" height="21" class="clsLink"> 
          <div align="left"><font size="-1"><a href="#" onclick="SHFrame();">Show/Hide 
            Catogary</a></font></div>
        </td>
        <td width="24%" height="9" valign="top"><font size="-1"></font></td>
        <td colspan="2" nowrap height="21" class="clsLink"> 
          <div align="right"><font size="-1"> &nbsp;&nbsp;| </font></div>
        </td>
        <td width="11%" nowrap height="21" class="clsLink"> 
          <div align="right"><font size="-2"> </font></div>
        </td>
      </tr>
    </table>
    </body>
    </html>
      

  5.   

    try:
    <SCRIPT LANGUAGE=javascript>
    function SHFrame(){
    top.document.all.xframe.cols ="0,*";
    }
    </SCRIPT>