<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/D">

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

80酷酷网    80kuku.com

  

好几天没写了,凑一下热闹吧.在作项目的时候发现的,很久了:

 <%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 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" 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 url(../images/move_bg.gif); DISPLAY: none; HEIGHT: 100%; WIDTH: 1px" onclick=BarMove() name="AtMovePic">
              <SPAN 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 url(../images/move_bg.gif); HEIGHT: 100%; WIDTH: 20px" onclick=BarMove() name="AtMovePic2">
              <SPAN hand"><IMG src="http://www.pushad.com/Info/images/move2.gif" alt=关闭左栏 width="6" height="207"></SPAN></TD>
      </TR>
          </TBODY>
        </TABLE>
      <TD 100%">
      <TD 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" 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1"></IFRAME></TD>
   </TR>
    </TBODY>
  </TABLE> 

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

 


 



分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: