zoukankan
html css js c++ java
使用半透明的DIV实现禁用页面功能(转)
实现功能:弹出一个DIV层提示等待信息,这个时候禁用用户操作页面中的其他内容。
弹出DIV:
<
div
id
="divWaiting"
style
="display: none; z-index: 1100; left: 25%; right: 25%; position: absolute;
text-align: center; 50%; height: 50px; border-right: #009900 1px solid;
border-top: #009900 1px solid; border-left: #009900 1px solid; border-bottom: #009900 1px solid;
background-color: #f9fff6; left: expression((this.offsetParent.clientWidth/2)-(this.clientWidth/2)+this.offsetParent.scrollLeft);
top: expression((this.offsetParent.clientHeight/2)-(this.clientHeight/2)+this.offsetParent.scrollTop);"
>
<
br
>
The system is dealing with your request, please waiting
</
div
>
弄一个全屏的DIV来覆盖页面:
<
div
id
="divDisable"
style
="display: none;expression(document.body.offsetWidth);height:expression(document.body.offsetHeight); z-index: 1000; position: absolute;left: 0px; top: 0px;filter:alpha(opacity=50); background-color:White"
></
div
>
点击按钮的操作:
document.getElementById("divWaiting").style.display="";
document.getElementById("divDisable").style.display="";
其他处理:
function ChangeDiv()
{
document.getElementById("divDisable").style.height=document.body.offsetHeight+document.body.scrollTop;
}
window.onscroll=ChangeDiv;
查看全文
相关阅读:
雨林木风操作系统有感
Bitcoin P2P 虚拟货币原理详解
SVN switch 用法详解
Bitcoin P2P 货币:有史以来最危险的项目
回旋线科普
Mathematica 如何绘制双纵坐标轴的图像?
c#数据库操作
在自定义HttpHandler中无法使用Session
VS2010安装因net framework4.0无法安装而失败的解决方法
.net framework 4.0 0xc8000247错误解决
原文地址:https://www.cnblogs.com/skyblue/p/1187691.html
最新文章
问题:导入Excel到Sql Server 2005
我的博客
【资料备份】c++声明二维变长数组,并用memset赋予0值
【转载】java 代码调用kmeans进行聚类
ZZ差距在哪里
说说我最近的烦心事儿
【工程处理技巧一篇】基于半规则数据的命名实体消歧识别【未完】
函数备份:按照指定的分隔符,将字符串进行切分
zz 标 题: 求weka JVM outofMemory问题的解决方案【已解决】
C++字符串:string and wstring的区别,非常重要!!!!
热门文章
将浮点数按照指定位数精度转换成字符串的C++函数
c++文件操作之读取全部文本文件【zz】
打包备份svn修改
WMS服务介绍
mysql命令
windows下命令行压缩cab包
chrome操作技巧
excel公式&操作技巧
jquery post method usage(备份)
Office Word 2007下管理参考文献(比2003版的交叉引用神马的轻松多拉)(转)
Copyright © 2011-2022 走看看