看到有的网站,点击他的“登录”或者“注册”按钮,就谈出一个“登录”或者“注册”对话框给你填写。
同时,父页面是灰色,不可改动的。
直到你填写完“登录”或者“注册”提交后,父页面又变回原来的颜色,可用操作。请问这个效果和父页面不可操作的功能怎么做的?
最好有个例子。
谢谢
同时,父页面是灰色,不可改动的。
直到你填写完“登录”或者“注册”提交后,父页面又变回原来的颜色,可用操作。请问这个效果和父页面不可操作的功能怎么做的?
最好有个例子。
谢谢
解决方案 »
- 怎样获取当当网或卓越网的新书目信息?
- COM对象的释放问题
- 急!!! DataTable 操作问题。50分相送.
- 急!!!!!!WinForm。
- 怎么使用VS2008制作MS-DOS简易模拟器
- 谁有上传图片的控件,一定要漂亮的
- 为什么Sybase数据库只有300-400M,运行很快,在电信和金融市占很大的比例,而Oracle ms sql却越来越大,没有什么市场??
- winform页面加载时,如何改变DataGridViewButtonColumn按钮值
- c#既然提供了垃圾整理的东东,为什么还要用析构函数来释放内存呢?
- 在C#里怎样让程序在执行到某一句之后延时几秒再执行下一句?
- \r\n 的正则表达式怎么写
- 如何获得wav播放的当前位置
这个我看完全适合你想要的效果使用的是AJAX控件。
function CreateDiv()
{
var tableHtml = "<iframe src='Chart.aspx' width='690px' height='520px' frameborder='no'></iframe>";
var msgw,msgh,bordercolor;
msgw=700;//提示窗口的宽度
msgh=300;//提示窗口的高度
titleheight=25 //提示窗口标题高度
bordercolor="#c51100";//提示窗口的边框颜色
titlecolor="#c51100";//提示窗口的标题颜色 var sWidth,sHeight;
sWidth=screen.width;
sHeight=screen.height; var bgObj=document.createElement("div");
bgObj.setAttribute('id','bgDiv');
bgObj.style.position="absolute";
bgObj.style.top="0";
bgObj.style.background="#cccccc";
bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
bgObj.style.opacity="0.6";
bgObj.style.left="0";
bgObj.style.width=sWidth + "px";
bgObj.style.height=sHeight + "px";
bgObj.style.zIndex = "10000";
document.body.appendChild(bgObj); var msgObj=document.createElement("div")
msgObj.setAttribute("id","msgDiv");
msgObj.setAttribute("align","center");
msgObj.style.background="white";
msgObj.style.border="1px solid " + bordercolor;
msgObj.style.position = "absolute";
msgObj.style.left = "37%";
msgObj.style.top = "25%";
msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
msgObj.style.marginLeft = "-225px" ;
msgObj.style.marginTop = -75+document.documentElement.scrollTop+"px";
msgObj.style.width = msgw + "px";
msgObj.style.height =msgh + "px";
msgObj.style.textAlign = "center";
msgObj.style.lineHeight ="25px";
msgObj.style.zIndex = "10001"; var title=document.createElement("h4");
title.setAttribute("id","msgTitle");
title.setAttribute("align","right");
title.style.margin="0";
title.style.padding="3px";
title.style.background=bordercolor;
title.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
title.style.opacity="0.75";
title.style.border="1px solid " + bordercolor;
title.style.height="18px";
title.style.font="14px Verdana, Geneva, Arial, Helvetica, sans-serif";
title.style.color="white";
title.style.cursor="pointer";
title.innerHTML="关闭";
title.onclick=function(){
document.body.removeChild(bgObj);
document.getElementById("msgDiv").removeChild(title);
document.body.removeChild(msgObj);
}
document.body.appendChild(msgObj);
document.getElementById("msgDiv").appendChild(title);
//var tableHtml = "<iframe src='Chart.aspx' width='690px' height='520px' frameborder='no'></iframe>";
var txt=document.createElement("iframe");
//debugger;
txt.style.width="690px";
txt.style.height="520px"
txt.frameBorder=0;
txt.src="Chart.aspx"
txt.setAttribute("id","msgTxt");
//txt.innerHTML=tableHtml;
document.getElementById("msgDiv").appendChild(txt);
}
</script><input type='button' value='DIV遮罩效果' onclick='CreateDiv()'>