zoukankan
html css js c++ java
层遮罩
.LoginWinDIV
{
}
{
width
:
119px
;
height
:
71px
;
z-index
:
99
;
background-color
:
#F0F4FB
;
border
:
1px solid #ffffff
;
border-bottom
:
4px solid #92a9c4
;
padding
:
1px
;
}
.LoginWinDIV1
{
}
{
position
:
absolute
;
left
:
0px
;
top
:
0px
;
z-index
:
98
;
background-color
:
#000000
;
filter
:
progid:DXImageTransform.Microsoft.Alpha(opacity=90)
;
}
.ShieldWinDIV
{
}
{
position
:
absolute
;
left
:
0px
;
top
:
0px
;
background-color
:
#0D1426
;
filter
:
progid:DXImageTransform.Microsoft.Alpha(opacity=70)
;
z-index
:
98
;
}
<
html
>
<
head
>
<
meta
http-equiv
="Content-Type"
content
="text/html; charset=gb2312"
>
<
link
href
="stylesheet.css"
rel
="stylesheet"
type
="text/css"
/>
<
script
type
="text/javascript"
language
="javascript"
>
<!--
var
url;
url
=
location;
//
登录窗口
function
Login()
{
if
(LoginWinDIV)
{
LoginWinDIV.style.display
=
''
;
NGShieldDIV();
}
}
//
屏蔽操作
function
NGShieldDIV()
{
if
(document.body.clientHeight
>
screen.height
-
120
)
{
Layer1height
=
document.body.clientHeight;
Layer1width
=
document.body.offsetWidth;
}
else
{
Layer1height
=
screen.height;
Layer1width
=
document.body.offsetWidth;
}
varstr
=
"
<div id='LoginWinDIV2' oncontextmenu='event.returnValue=false'
class='ShieldWinDIV' style='
"
+
Layer1width
+
"
;height:
"
+
Layer1height
+
"
;'></div>
"
;
ShieldWinDIV.innerHTML
=
varstr;
}
//
放开操作
function
OpenDIV()
{
ShieldWinDIV.innerHTML
=
""
;
}
//
-->
</
script
>
<
script
type
="text/javascript"
language
="javascript"
>
var
DIVWidth
=
document.body.clientWidth;
var
DIVHeigth
=
document.body.clientHeight;
LoginWinDIV.style.left
=
DIVWidth
/
2-240;
LoginWinDIV.style.top
=
200
;
RegeditWinDIV.style.left
=
DIVWidth
/
2-240;
RegeditWinDIV.style.top
=
200
;
InfoWinDIV.style.left
=
DIVWidth
/
2-240;
InfoWinDIV.style.top
=
200
;
</
script
>
</
head
>
<
body
>
<
span
id
='ShieldWinDIV'
></
span
>
<
div
id
="LoginWinDIV"
class
="LoginWinDIV"
style
="position: absolute; left: 204px;
top: 91px; z-index: 99; padding: 1px; display: none;"
>
<
input
name
="btnSubmit"
type
="button"
class
="buttonStyle"
value
=" 取消 "
onclick
="OpenDIV();LoginWinDIV.style.display='none';"
/></
div
>
<
center
>
<
input
name
="btnSubmit2"
type
="button"
class
="buttonStyle"
value
="上传文件"
onclick
=" Login()"
/>
</
center
>
</
body
>
</
html
>
查看全文
相关阅读:
Creat-React-Native-App 之StackNavigator之踩坑记录
[转]JavaScript构造函数及原型对象
js技巧之与或运算符 || && 妙用
iOS 开发中的小技巧
钥匙串中所有证书都失效的解决方法
提高app性能
jspatch
谓词
Xcode 添加 模版-
IOS-Jenkins 自动打包
原文地址:https://www.cnblogs.com/ZhengGuoQing/p/1237384.html
最新文章
转:获取GridView中RowCommand的当前索引行
转:GridView中RowDataBound的取值
转:模式窗口showModalDialog的用法总结
form表单提交引发的血案
记忆函数功能
管理系统如何做模块化开发?
ztree实现权限功能(横向显示)
IE下a标签会触发window.onbeforeunload的问题
IE下元素设置百分比的问题
phonegap+cordova+ionic调用原生API
热门文章
phoneGap+cordova+ionic混合app开发环境搭建
动态添加行的方案
弹出控件的位置该如何计算?
为什么说 Babel 将推动 JavaScript 的发展【转】
js模块化编程之CommonJS和AMD/CMD!
js之模板方法模式
js之状态模式
深入理解按位异或运算符
Hash表
[转]原码, 反码, 补码 详解
Copyright © 2011-2022 走看看