style type text css fade position absolute color white width 100 heigh

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
style type="text/css">
#fade {
position:absolute;
color: white;
width:100%;
height:100%;
visibility:hidden;
z-index:999;
background: #404040;
border: 1px solid indigo;
}
</style>
function login(showhide){
var fade = document.getElementById('fade');
if(showhide == "show"){
if(typeof IE == 'boolean'){
alert('IE');
fade.style.filter = 'Alpha(Opacity=50)';
fade.style.visibility="visible";
document.getElementById('popupbox').style.visibility="visible";
document.getElementById('popupbox').style.zIndex=1000;
} else {
alert('FF');
fade.style.visibility="visible";
fade.style.opacity = 0.5;
document.getElementById('popupbox').style.visibility="visible";
document.getElementById('popupbox').style.zIndex=1000;
}
} else if(showhide == "hide"){
document.getElementById('popupbox').style.visibility="hidden";
document.getElementById('fade').style.visibility="hidden";
}
}