use javascript, for example:top.document.all.tags("FRAMESET")[2].rows ="*";

解决方案 »

  1.   

    给你一个例子吧! 
    ====================================== 
     mail.htm
      ==============================================
       <frameset rows="80,10,*" id="mm" cols="*" frameborder="NO" border="0" framespacing="0">
    <frame src="top.aspx" name="topFrame" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING='no' noresize>
    <frame name="to_TOP" src="go_TOP.htm" scrolling="no">
    <frameset rows="*" id="oa_frame" cols="120,16,*" framespacing="0" frameborder="NO" border="0">
    <frame src="menu.aspx" name="leftFrame" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING='no'
    noresize>
    <frame name="middleframe" src='t_l.htm' scrolling='no' frameborder='NO' noresize>
    <frame src="welcome.aspx" name="main" MARGINWIDTH="0" MARGINHEIGHT="0" noresize>
    </frameset>
    </frameset>
    =====================================================
    go_top.htm
    =====================================================
     <head>
    <title>button_title_r</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script>
    var ttt
    ttt=2;
    function oa_tool1(){
    if(ttt==2)
    {
    ttt=1;
    frameshow1.src="images/p_5.gif";
    frameshow1.alt="珆尨嫘豢沭"
    window.parent.mm.rows="0,10,*,0";
    }
    else
    {
    ttt=2;
    window.parent.mm.rows="80,10,*,0";
    frameshow1.src="images/p_6.gif";
    frameshow1.alt="笐紲嫘豢沭"
    }
    }
    </script>
    </head>
    <body text="#000000" leftmargin="0" topmargin="0" bgcolor="#276db2">
    <!--
    <div onclick="oa_tool1()" align="center"><img id=frameshow1 src="images/p_6.gif" width="50" height="9" alt="笐紲嫘豢沭"></div>
    -->
    </body>
    </html>
    =======================================================================
       t_l.htm
    ========================================================================
    <html>
    <head>
    <title>button_title_l</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script>
    var ttt
    ttt=1;
    function oa_tool(){
    //if(window.parent.oa_frame.cols=="0,16,*"){
    if( ttt == 2 ){
    ttt = 1;
    frameshow.src="images/p_1.gif";
    oa_tree.title="笐紲馱撿戲";
    window.parent.oa_frame.cols="120,16,*";
    //window.parent.leftFrame.cols="120,16,*";
    //alert("2");
    }
    else{
    ttt = 2;
    frameshow.src="images/p_2.gif";
    oa_tree.title="珆尨馱撿戲";
    window.parent.oa_frame.cols="0,16,*";
    //window.parent.leftFrame.cols="0,16,*";
    //alert("1");
    }
    }
    </script>
    </head>
    <body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#CCCCCC">
    <table width="16" border="0" height="100%" cellpadding="0" cellspacing="0" align="left">
      <tr align="center">
        <td background="images/bg_1.gif">
          <div id=oa_tree onclick="oa_tool();" title=笐紲馱撿戲><img id=frameshow src="images/p_1.gif" width="9" height="50" ></div>
          </td>
      </tr>
    </table>
    </body>
    </html>