onclick="if(this.value=='open') {parent.document.all.framesetID.cols='0,100,*';this.value='close'} else {parent.document.all.framesetID.cols='100,100,*';this.value='open'}"

解决方案 »

  1.   

    给你我用的iframe版。
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>西北工业大学信息技术学院教学部学生信息查询系统</title>
    <style type="text/css">
    <!--
    .changes {
    font-family: "Webdings";
    font-size: 9pt;
    color: #FFFFFF;
    cursor: hand;
    }
    .tbborder {
    border-top-width: 2px;
    border-bottom-width: 2px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-top-color: #0099FF;
    border-bottom-color: #0099FF;
    }
    .lboder {
    border-left: 2px solid #0099FF;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: #0099FF;
    }
    -->
    </style>
    <link href="css/document.css" rel="stylesheet" type="text/css">
    </head>
    <script>
    function dochange()
      {if(left.style.display=="")
         {left.style.display="none";
          right.style.width="100%";
        aa.innerHTML="4"
         }
     else
       {aa.innerHTML="3"
        right.style.width="85%";
    left.style.display="";
       }   
    middle.style.width="1px";
    }
    </script>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="15%" height="100%" border="0" align="left" cellpadding="0" cellspacing="0" class="lboder" id=left>
      <tr>
        <td height="100%" valign="top"> 
          <div align="center">left</div></td>
      </tr>
    </table>
    <table height="100%"  width="85%" id="right" border="0" align="left" cellpadding="1" cellspacing="0">
      <tr> 
        <td width="1" height="100%" bgcolor="#0099FF"  id="middle" style="width:1px"><A id="aa" class="changes" onClick="dochange()" >3</A></td>
        <td height="100%"><iframe name="main" src="stu_listall.asp" frameborder="0" width="100%" height="100%" scrolling="no"></iframe></td>
      </tr>
    </table>
    </body>
    </html>