zoukankan
html css js c++ java
[Javascript]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>
查看全文
相关阅读:
【日语】标日初级上册单词(5-8)1
【日语】标日初级上册单词(1-4)1
【日语】计算机日语
百家姓日语
【日语】动物名称日语单词集合
【日语】日语常用会话1000句
【日语】编程相关日语词汇
【日语】日语N5学习
【日语】日语新闻核心词汇
使用uni-app开发微信小程序之登录模块
原文地址:https://www.cnblogs.com/HD/p/147749.html
最新文章
关于try catch finally的执行顺序解释
const和define的差别
atexit()使用
C++ 操作符、局部 全局变量及自动转换原则
i=i+1,i+=1,i++哪个执行效率最高?为什么?
Mysql 存储引擎
转:QTCreater调试时提示ptrace不允许的操作(点击调试之后40秒钟gdb无回应)
qtcreator_process_stub中文输出乱码
ubuntu安转QTcreator出现The default mkspec symlink is broken
TCP 流量控制、拥塞控制
热门文章
浏览器的一个请求从发送到返回经历了什么(转)
用js如何获取一个上传文件的扩展名
25种提高网页加载速度的方法和技巧
ie和dom事件流的区别
写一个trim函数,兼容IE firefox chrome(正则)
HTTPS和HTTP有什么区别
为什么 ReactJS 不适合复杂的前端项目?
react.js的了解
json和jsonp
请描述一下 cookies,sessionStorage和localStorage的区别?
Copyright © 2011-2022 走看看