IFRAME运用(2)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  <title>RetractBar</title>
  <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <STYLE type="TEXT/CSS">
   
  </STYLE>
  <script language="javascript">
  
    var currentMoveObj = null;
    
    function PageLoad()
    {
     //设置左边框架宽度:0.20为百分比
     document.getElementById( "frmLeft" ).style.width = document.body.scrollWidth * 0.20;
     //设置缩进条颜色:#888888
     document.getElementById( "frmBar" ).style.backgroundColor = "#888888";
    }
    
    function switchSysBar()
    {
     if (switchPoint.innerText==3)
     {
      switchPoint.innerText=4;
      document.getElementById( "frmLeft" ).style.display = "none";
     }
     else
     {
      switchPoint.innerText=3;
      document.getElementById( "frmLeft" ).style.display = "";
     }
    }
    
    function BarMouseOver()
    {
     if (switchPoint.innerText==4)
     {
      switchPoint.innerText=3;
      document.getElementById( "frmLeft" ).style.display = "";
     }
    }
    
    window.onload = PageLoad;
    window.onresize = PageLoad;
    
  </script>
 </head>
 <body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
  <TABLE border=0 cellPadding=0 cellSpacing=0 height="100%" width="100%" ID="Table1">
   <TR>
    <!--左框架-->
    <TD align="center" valign="middle" id="frmTitle">
     <div id="frmLeft" style="HEIGHT: 100%">
      <IFRAME frameBorder="0" id="Ileft" name="Ileft" src="" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 2"></IFRAME>
     </div>
    </TD>
    <!--缩进条-->
    <TD>
     <div id="frmBar" onmouseover="BarMouseOver()" style="FILTER: alpha(opacity=100,finishopacity=0,style=1,startx=0,starty=100,finishx=,finishy=100); WIDTH: 100%; HEIGHT: 100%">
      <TABLE border="0" cellPadding="0" cellSpacing="0" height="100%" ID="Frame">
       <TR>
        <TD style="HEIGHT: 100%"><SPAN style="COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 11px" onclick="switchSysBar()" id="switchPoint" title="点击缩放" >3</SPAN></TD>
       </TR>
      </TABLE>
     </div>
    </TD>
    <!--右框架-->
    <TD width="100%">
     <div id="frmRight">
      <IFRAME frameBorder="0" id="Iright" name="Iright" scrolling="no" src="about:home" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1"></IFRAME>
     </div>
    </TD>
   </TR>
  </TABLE>
 </body>
</html>

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值