用Iframe实现框架的功能,并可以打开或关闭左栏

来源:互联网 发布:tomcat 开启调试端口 编辑:程序博客网 时间:2024/05/17 00:53

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>www.xrss.cn_网络大本营</title>
<SCRIPT>
function BarMove(){
 if (AtMovePic2.style.display==""){
  document.all("AtMovePic2").style.display="none"
  document.all("AtMovePic").style.display=""
  document.all("frmTitle").style.display="none"
 }
 else{
  document.all("AtMovePic2").style.display=""
  document.all("AtMovePic").style.display="none"
  document.all("frmTitle").style.display=""
 }
}
</SCRIPT>

</head>

<body style="margin:0px;">
</p>
<p><center>用户权限管理</center></p>
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%" width="100%">
  <TBODY>
    <TR>
      <TD align=middle id=frmTitle noWrap rowSpan=3 vAlign=center name="frmTitle">
        <table width="100%" height="100%" border=0 cellpadding=0 cellspacing=0>
          <tr>
            <td height="98%" colspan="2" align=middle><iframe frameborder=0 id=menu name=menu src="left.asp" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 160px; Z-INDEX: 2"></iframe></td>
          </tr>
        </table>
    <TD rowSpan=3>
      <TABLE width="1" height="100%" cellPadding=0 cellSpacing=0 bgcolor="#FF5E00">
        <TBODY>
          <TR>
            <TD width="1" height="217" vAlign=top id=AtMovePic style="BACKGROUND: url(../images/move_bg.gif); DISPLAY: none; HEIGHT: 100%; WIDTH: 1px" onclick=BarMove() name="AtMovePic">
              <SPAN style="CURSOR: hand"><IMG src="http://www.pushad.com/Info/images/move.gif" alt=打开左栏 width="6" height="207"></SPAN></TD>
              <TD width="1" vAlign=top id=AtMovePic2 style="BACKGROUND: url(../images/move_bg.gif); HEIGHT: 100%; WIDTH: 20px" onclick=BarMove() name="AtMovePic2">
              <SPAN style="CURSOR: hand"><IMG src="http://www.pushad.com/Info/images/move2.gif" alt=关闭左栏 width="6" height="207"></SPAN></TD>
      </TR>
          </TBODY>
        </TABLE>
      <TD style="HEIGHT: 100%">
      <TD style="WIDTH: 100%">
  <TABLE width="100%" height="100%" border=0 cellPadding=0 cellSpacing=0>
   <TBODY>
   <TR>
     <TD height="100%" colspan="2" align=middle>
     <IFRAME frameBorder=0 id=main name=main src="main.asp" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1"></IFRAME></TD>
   </TR>
    </TBODY>
  </TABLE> 

   </td>
    </TR>
    
 </TBODY>
</TABLE>
</body>
</html>

 

原创粉丝点击