“上帧”中的菜单的onClick="ShowRight()"function ShowRight()
{
  top.rightFrame.src="right.htm"
}
Js
function maxRight()
{
   top.Frameset2.columns="0,*";
}

解决方案 »

  1.   

    我的框架定义如下: <frameset rows="100, *" border="0" frameSpacing="0" frameBorder="0">
    <frame name="frmMenu" >
    <frameset cols="200, *" id="frmTree1" border="0">
    <frame name="frmTree" id="frmTree" >
    <frame name="frmContent" frameborder="0" >
    </frameset>
    </frameset>把你写的Frameset2换成frmTree1了。
    top.frmTree1.columns="0,*";写到右下帧里面了,没有起作用。
    window.top.frmTree1.columns="0,*";也没有起作用。请指教。
      

  2.   

    框架页面ft.htm:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <frameset id="welcome" rows="120,*" cols="*" frameborder="NO" border="0" framespacing="0">
      <frame src="webTop.htm" name="wlTop" scrolling="NO" noresize >
      <frameset id="weldown" cols="120,25,*" frameborder="NO" border="0" framespacing="0">
        <frame src="webleft.htm" name="wlLeft" scrolling="auto" noresize>
        <frame src="webtool.htm" name="wlTool" scrolling="NO" noresize>
        <frame src="../div/moveDiv.html" name="wlMain" scrolling="auto">
      </frameset>
    </frameset>
    <noframes><body>
    </body></noframes>
    </html>控制帧的页面webtool.htm:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script language="JavaScript">
    var topI = 120;
    var leftI = 120;
    var toolI = 25;
    function get()
    {
    var docWidth=document.body.offsetWidth;
    var docHeight=document.body.offsetHeight;
    alert(docWidth+"\n"+docHeight)
    }
    function hdTop()
    {
    var getRows = parent.welcome.rows;
    var tempstr = getRows.substring(0,getRows.indexOf(","));
    var getRowsI = tempstr - 0;
    if(getRowsI==0)
    {
    parent.welcome.rows = topI + ",*";
    upft.innerHTML = "↑";
    } else {
    parent.welcome.rows = "0,*";
    upft.innerHTML = "↓";
    }
    }
    function hdLeft()
    {
    var getRows = parent.weldown.cols;
    var tempstr = getRows.substring(0,getRows.indexOf(","));
    var getRowsI = tempstr - 0;
    if(getRowsI==0)
    {
    parent.weldown.cols = leftI + "," + toolI + ",*";
    downft.innerHTML = "←";
    } else {
    parent.weldown.cols = "0," + toolI + ",*";
    downft.innerHTML = "→";
    }
    }
    </script>
    </head><body bgcolor="#CCCCFF">
    <table width="25" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="30%">&nbsp;</td>
      </tr>
      <tr>
        <td height="5%" id="upft" style="CURSOR:Hand" onClick="hdTop();">↑</td>
      </tr>
      <tr>
        <td height="30%"><a href="javascript:get()">h</a></td>
      </tr>
      <tr>
        <td height="5%" id="downft" style="CURSOR:Hand" onClick="hdLeft();">←</td>
      </tr>
      <tr>
        <td height="30%">&nbsp;</td>
      </tr>
    </table>
    </body>
    </html>webleft.htm:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <body bgcolor="#CCCCCC">
    </body>
    </html>webTop.htm:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <body bgcolor="#FFCCCC">
    </body>
    </html>