如何用prototype.js 做一个弹出层后面变灰,不可能操作的那种
解决方案 »
- WebRequest被目标机器积极拒绝的问题~
- 一个关于。NET 2003 AJAX的问题
- 一个很奇怪的事情,有丰富经验的进.在线急等``````
- 如何判断当前页面 GridView 的数据源是谁? (GridView的数据源可动态更改)
- ASP.NET中的JavaScript
- 菜鸟问题,怎么把GridView绑定两个数据源?
- 关于WebForm下操作excel打印的棘手的问题!
- 内容分页有什么好的解决方案?
- webservice返回数据处理
- 如何上传图片到SQL数据库,在线等待,答对立刻给分
- 【为什么设置页面过期无效果?】
- 关于asp.net与数据库一起打包部署的问题,请各位大哥进来看看....
xilinus http://blogus.xilinus.com/pages/javawin
弹出层 和 prototype 有什么关系,能用 纯 JS 写不是更好。http://hi.baidu.com/tshxsky/blog/item/4dc7a0da3f329ddeb7fd4867.html
function Estop(id)
{
if(document.getElementById("Estop"))
{
var objEstop = document.getElementById("Estop");
objEstop.style.display = "";
objEstop.style.width = document.body.offsetWidth + 'px';
objEstop.style.height = document.body.offsetHeight + 'px';
}
else
{
var str = document.createElement("div");
str.id = "Estop";
str.style.position = "absolute";
str.style.width = document.body.offsetWidth + 'px';
str.style.height = document.body.offsetHeight + 'px';
str.style.backgroundColor = "Black";
str.style.zIndex = 10;
str.style.top="0";
str.style.left="0";
if(navigator.userAgent.indexOf("MSIE")>0)
{
str.style.filter = "alpha(opacity=60)";
}
else
{
str.style.opacity = 0.6;
}
document.body.insertBefore(str,document.getElementById("aspnetForm"));
}
var obj = document.getElementById(id);
var objTemp = obj;
obj.parentNode.removeChild(obj);
var width = objTemp.style.width;
width = width.substr(0,width.length - 2);
objTemp.id = id;
objTemp.style.left=((screen.width-width)/2) + "px";
objTemp.style.top=(document.documentElement.scrollTop + 150) + "px";
objTemp.style.display = "block";
document.body.insertBefore(objTemp,document.getElementById("aspnetForm"));
HidSelect("none");
}function removeEstop(id)
{
if(document.getElementById("Estop")) document.getElementById("Estop").style.display = "none";
if(document.getElementById(id)) document.getElementById(id).style.display = "none";
HidSelect("");
}