try something liketo hide:
top.document.body.rows = "0,*"; 
or
top.document.body.cols = "0,*"; to show:
top.document.body.rows = "300,*"; 
or
top.document.body.cols = "300,*"; 

解决方案 »

  1.   

    为什么是document.body.cols或者document.body.rows,可以这样用么?
    应该是该Frameset的name吧
      

  2.   

    document.body refers to the frameset object in the frameset windowtry1. frameset.html:
    <frameset rows="200,*">
     <frame src="">
     <frame src="frame1.html">
    </frameset>2. frame1.html:
    <input type="button" value="hide" onclick="showFrame(this)"><script language="javascript">
    function showFrame(obj)
    {
      if (obj.value == "hide")
      {
            top.document.body.rows = "0,*"; 
    obj.value = "show";
      }
      else
      {
    top.document.body.rows = "200,*"; 
    obj.value = "hide";
      }
    }
    </script>
      

  3.   

    在说了,你也不看情况就告诉人家,说错了怎么办            我建议楼主弄本MSDN的DHTML教程更容易解决问题
      

  4.   

    <frameset cols="200,30,*" id=mxh frameborder=0>
     <frame src="">
     <frame src="frame1.htm" style="border:2px solid red">
     <frame src="">
    </frameset>frame1.htm
    =============
    <body leftmargin=0>
    <input type="button" value="<<" onclick="showFrame(this)">
    <script language="javascript">
    function showFrame(o)
    {
    a=top.document.getElementById("mxh")
     if(a.cols=="200,30,*"){
     a.cols="0,50,*"
     o.value=">>"
     }
     else
     {
     a.cols="200,30,*"
     o.value="<<"
     }
    }
    </script>
      

  5.   

    应该体谅“思归”,他在USA,那没有中文输入法?!
      

  6.   

    function hide()
    {
    var o = document.images[0];
    top.b.cols='11,*';top.c.cols='0,*';
    o.src="images/l.gif";
    document.all.className='r';
    }
    function show()
    {
    var o = document.images[0];
    top.b.cols='144,*';top.c.cols='133,11';
    o.src="images/r.gif";
    document.all.className='l';
    }
    function act(e)
    {
    var o = document.images[0];
    if(o.src.match("images/r.gif")!=null)
    {
    hide();
    }
    else 
    {
    show();
    }
    }b是框架的ID