层遮罩

.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='width:
"+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>
posted @ 2008-07-07 11:55  zhengguoqing  阅读(287)  评论(0编辑  收藏  举报