弹出窗口显示时禁用后台 [英] Disabling background when pop up window displayed

查看:85
本文介绍了弹出窗口显示时禁用后台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



i有popwindow,当我点击按钮打开时,我想要当弹出打开然后所有背景的网站变得浅黑..如何可能

解决方案















Simple Popup Div +后台禁用示例





Popup 1















我需要任何帮助,我是准备。 manish.m.meshram@gmail.com

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

解决方案

This[^] might help you.


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


这篇关于弹出窗口显示时禁用后台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
其他开发语言最新文章
热门教程
热门工具
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆