关闭

左边框架的折叠显示

标签: 框架javascriptborderfunctioniframeserver
569人阅读 评论(0) 收藏 举报
分类:
<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>
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:2334次
    • 积分:52
    • 等级:
    • 排名:千里之外
    • 原创:3篇
    • 转载:1篇
    • 译文:0篇
    • 评论:2条
    文章分类
    文章存档
    最新评论