左边框架的折叠显示

来源:互联网 发布:js超链接跳转页面 编辑:程序博客网 时间:2024/04/29 20:52
<body MS_POSITIONING="GridLayout">
  <form id="Form1" method="post" runat="server">
   <table width="100%" height="100%" border="1" cellpadding="0" cellspacing="0">
    <tr>
     <td width="166" height="100%" id="leftmenu" style="WIDTH: 166px"><IFRAME style="VISIBILITY: inherit; WIDTH: 162px; HEIGHT: 100%" id="BoardLeft" name="BoardLeft"
       marginWidth="0" frameSpacing="2" marginHeight="0" src="left.aspx" frameBorder="0" noResize scrolling="yes"></IFRAME>
     </td>
     <td valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
       <tr>
        <td><table width="100%" height="25" border="0" cellpadding="0" cellspacing="0" background="images/admin_top_bg.gif">
          <tr valign="middle">
           <td width="30">
            <img src="images/admin_top_close.gif" ID="PA" alt="关闭左边管理菜单" style="CURSOR:hand" onClick="javascript:ShowMenu(PA);">
            <img src="images/admin_top_open.gif" ID="PB" alt="打开左边管理菜单" style="DISPLAY:none; CURSOR:hand"
             onClick="javascript:closeMenu(PB);">
           </td>
           <td width="503" align="center">
            <asp:Label id="lbcompany" runat="server"></asp:Label></td>
           <td width="30" align="center"><a href="login.aspx"><img src="images/gohome.gif" alt="返回后台登录口" border="0"></a></td>
           <td width="70" align="right"><a href="../index.aspx">返回首页</a>&nbsp;&nbsp;</td>
          </tr>
         </table>
        </td>
       </tr>
       <tr>
        <td align="center" width="100%" height="100%"><IFRAME style="Z-INDEX: 3; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%" id="sltpage"
          name="sltpage" frameSpacing="1" src="pro.aspx" frameBorder="0" scrolling="yes"></IFRAME>
        </td>
       </tr>
      </table>
     </td>
    </tr>
   </table>
  </form>
  <script language="javascript">
<!--
 function ShowMenu(TB)
 {
  if (TB = "PA"){
  document.all("leftmenu").style.display="none";
  document.all("PA").style.display="none";
  document.all("PB").style.display="";
  }
  
 }
 function closeMenu(TB)
 {
  if (TB = "PB"){
  document.all("leftmenu").style.display="";
  document.all("PB").style.display="none";
  document.all("PA").style.display="";
  }
 }
-->
  </script>
 </body>
原创粉丝点击