Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello all,

i have popwindow, which open when i click the button, i want when pop up open then all background of site get light black .. how it possible
Posted
Updated 31-Jan-18 2:55am

This[^] might help you.
 
Share this answer
 
Hi you can use following code.




<title>PopUp window and Background Disable

body
{
background-image:url("1.gif");
}
.parentDisable
{
z-index:999;
width:100%;
height:100%;
display:none;
position:absolute;
top:0;
left:0;
background-color: #000;
color: #aaa;
opacity: .4;
filter: alpha(opacity=50);
}
#popup
{
width:300;
height:300;
position:relative;
color: #000;
background-color: #fff;
top:25%;
background-image:url(catbg-1.gif);

}
#close
{
position:absolute;
top:0;
right:0;
}


function pop(div)
{
document.getElementById(div).style.display='block';
return false
}
function hide(div)
{
document.getElementById(div).style.display='none';
return false
}











Simple Popup Div + Background Disable Example



Popup 1







I you need any help, I am ready. manish.m.meshram@gmail.com
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900