===求一可以关闭框架页中左边页面的代码。就像以前CSDN论坛可以关闭左边的页面一样。====谢谢!

解决方案 »

  1.   

    Main.htm<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
    <title>浙江边防网上考试系统后台管理</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    </head>
    <frameset rows="102,*" frameborder="NO" border="0" framespacing="0" name="topset">
    <frame name="topFrame" scrolling="NO" noresize src="Top.aspx">
    <frameset rows="*" cols="204,*" framespacing="0" frameborder="no" border="0" name="middleset">
    <frame name="leftFrame" noresize src="left.aspx">
    <frameset rows="*" cols="5,*" framespacing="0" frameborder="NO" border="0">
    <frame src="spliter.aspx" name="spliterFrame" scrolling="NO" noresize>
    <frame name="mainFrame" src="Main.aspx">
    </frameset>
    </frameset>
    </frameset>
    <noframes>
    <body bgcolor="#FFFFFF" text="#000000">
    </body>
    </noframes>
    </html>spliter.aspx<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 
    <html>
      <head>
        <title>Spliter</title>
        <style type="text/css">
    <!--
    a { color: <%=Application[Session["Style"].ToString()+"xtree_bgcolor"]%>; text-decoration: none}
    a:hover { color:red;text-decoration: none}
    -->
    </style>
        <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_LANGUAGE" Content="C#">
        <meta name=vs_defaultClientScript content="JavaScript">
        <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
      </head>
      <body bgcolor='<%=Application[Session["Style"].ToString()+"xspliter_color"]%>' leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="if(parent.middleset.cols='0,*'){parent.middleset.cols='<%=Application[Session["Style"].ToString()+"xleft_width"]%>,*'}" onClick="if(parent.middleset.cols!='0,*'){parent.middleset.cols='0,*'}else{parent.middleset.cols='<%=Application[Session["Style"].ToString()+"xleft_width"]%>,*'};" style="cursor: hand">

        <form id="Form1" method="post" runat="server">
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    </p>
    <br>
    <table width="5" height="70" border="0" cellpadding="0" cellspacing="0" bgcolor='<%=Application[Session["Style"].ToString()+"xspliter_color"]%>'>
    <tr> 
    <td height="2" bgcolor='<%=Application[Session["Style"].ToString()+"xtree_bgcolor"]%>'></td>
    </tr>
    <tr> 
    <td><font color='<%=Application[Session["Style"].ToString()+"xtree_bgcolor"]%>'>]</font></td>
    </tr>
    <tr>
    <td height="2" bgcolor='<%=Application[Session["Style"].ToString()+"xtree_bgcolor"]%>'></td>
    </tr>
    </table>
         </form>

      </body>
    </html>