社区
ASP
帖子详情
谁有网页中间弹出对话框,后面整个页面变灰的源码
mxrxhy007
2009-08-09 09:36:31
谁有网页中间弹出对话框,后面整个页面变灰的源码,我希望是用户一登陆,就弹出对话框,后面页面变灰,点击对话框确定后才能显示出来。有的话希望能分享一下,不胜感激!!!
...全文
377
3
打赏
收藏
谁有网页中间弹出对话框,后面整个页面变灰的源码
谁有网页中间弹出对话框,后面整个页面变灰的源码,我希望是用户一登陆,就弹出对话框,后面页面变灰,点击对话框确定后才能显示出来。有的话希望能分享一下,不胜感激!!!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
plcc123
2009-08-10
打赏
举报
回复
<style type="text/css">
a{ color:#000; font-size:12px;text-decoration:none}
a:hover{ color:#900; text-decoration:underline}
body{background:;filter:progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#ffffff,endColorStr=#003366); overflow:hidden}
#massage_box{ position:absolute; left:expression((body.clientWidth-350)/2); top:expression((body.clientHeight-200)/2); width:350px; height:200px;filter:dropshadow(color=#666666,offx=3,offy=3,positive=2);filter:ALPHA(opacity=70); z-index:2; visibility:hidden}
#mask{ position:absolute; top:0; left:0; width:expression(body.clientWidth); height:expression(body.clientHeight); background:#666; filter:ALPHA(opacity=60); z-index:1; visibility:hidden}
.massage{border:#036 solid; border-width:1 1 3 1; width:95%; height:95%; background:#fff; color:#036; font-size:12px; line-height:150%}
.header{background:#036; height:10%; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; padding:3 5 0 5; color:#fff}
label{ font-size:12px;}
label a{ color:#FF0000; font-size:12px;text-decoration:none}
label a:hover{ color:#FF0000; text-decoration:underline}
.label{ font-size:12px; color:#C74152}
.input_userName{
background-image:url(images/username.gif);
background-position: 1px 1px;
background-repeat:no-repeat;
padding-left:20px;
height:20px;
FONT-SIZE: 12px;}
.input_password{
background-image:url(images/password.gif);
background-position: 1px 1px;
background-repeat:no-repeat;
padding-left:20px;
height:20px;
FONT-SIZE: 12px;}
.btn1_Login {
BORDER-RIGHT: #7EBF4F 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7EBF4F 1px solid; PADDING-LEFT: 2px;
FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#B3D997);
BORDER-LEFT: #7EBF4F 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7EBF4F 1px solid
}
.btn3_mouseout {
BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px;
FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid
}
</style>
<!--实现层移动-->
<script type="text/javascript">
var Obj='';
document.onmouseup=MUp;
document.onmousemove=MMove;
function MDown(Object){
Obj=Object.id;
document.all(Obj).setCapture();
pX=event.x-document.all(Obj).style.pixelLeft;
pY=event.y-document.all(Obj).style.pixelTop;
}
function MMove(){
if(Obj!=''){
document.all(Obj).style.left=event.x-pX;
document.all(Obj).style.top=event.y-pY;
}
}
function MUp(){
if(Obj!=''){
document.all(Obj).releaseCapture();
Obj='';
}
}
/*这里写验证的相关代码
function check()
{
if(form1.txt_userName.value = "")
{
alert();
}
}*/
</script>
</head>
<BODY >
<script language=JavaScript src="js/ad.js"></script>
<div id="massage_box"><div class="massage">
<div class="header" onmousedown=MDown(massage_box)>
<div style="display:inline; cursor:move; width:300px; position:absolute">登 陆</div>
<span onClick="massage_box.style.visibility='hidden'; mask.style.visibility='hidden'" style="float:right; display:inline; cursor:hand" title="关闭窗口 ">×</span></div><!--关闭窗口功能-->
<form id="form1" name="form1" action="#" method="post" style="text-align:center;margin-left:25" >
<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td align="center">
<label for="lab_userName">用户名:</label><br /><br /> </td>
<td><input type="text" name="txt_userName" value="" border="1" size="22" maxlength="20" class="input_userName" title="最长只能输入20个字符哦!" /><br /><br />
</td></tr>
<tr><td align="center">
<label for="lab_password">密 码:</label><br /><br /></td>
<td><input type="password" value="" name="password" size="23" class="input_password" title="输入密码!" maxlength="15" /><label for="lab_forgetpwd" class="label" title="忘记密码?" > <a href="#">忘记密码?</a></label><br /><br /></td></tr>
</table>
<input type="button" value=" 登 陆 " class="btn1_Login" name="btn_Login" />
<label for="lab_regist" class="label" ><a href="#">新用户注册!</a></label>
</form>
</div></div>
<!--实现底层的不可编辑性-->
<div id="mask"></div>
<div align="right"><span onClick="mask.style.visibility='visible';massage_box.style.visibility='visible'" style="cursor:hand; text-align:right;"><a href="#" _fcksavedurl="#" style="text-align:right">登 陆</a></span> <a href="#" >注 册</a>
<!--实现底层的不可编辑性代码结束-->
<!--<table width="778" height="1500" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F4F4F4">
<tr>
<td> </td>
</tr>
</table>-->
</div>
mxrxhy007
2009-08-09
打赏
举报
回复
我自己找到了一段比较简单实用的,但是这个是在同一页里实现的,有没有办法是在前一页点击“进入管理中心”,然后进入管理页面的时候弹出的呢。如果这样,我标出的红色部分该怎么改?
<html>
<head>
<title>LIGHTBOX EXAMPLE</title>
<style>
.black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .white_content { display: none; position: absolute; top: 25%; left: 25%; width: 50%; height: 50%; padding: 16px; border: 16px solid orange; background-color: white; z-index:1002; overflow: auto; } </style>
</head>
<body>
<p>可以根据自己要求修改css样式
<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">点击这里打开窗口</a></
p>
<div id="light" class="white_content">
This is the lightbox content.
<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">
Close</a></div>
<div id="fade" class="black_overlay">
</div>
</body>
</html>
一把编程的菜刀
2009-08-09
打赏
举报
回复
javascripot div登陆提示框(页面层不可用) :http://blog.csdn.net/chinmo/archive/2008/04/20/2308911.aspx
要学会自己GOOGLE
打开
网页
自动
弹出
QQ
对话框
的实现办法
Ian今天偶然进入一个公司的企业网站,然后QQ聊天窗口这里马上就
弹出
与那个公司客服聊天的窗口。怀着好奇的心态,Ian分析了该公司的网站
源码
,发现了实现
网页
弹出
qq
对话框
的原理与实现方法,相信此时此刻你的QQ已经打开了与Ian聊天的窗口了吧! ian在这里把实现“
网页
自动
弹出
QQ
对话框
”的原理与方法分享给各位做企业网站的朋友,这些小手段能够实现跟《在认证QQ空间主页上同步显示网站内容》一样对于网站...
html语言
弹出
窗口代码,
网页
弹出
窗口代码
哪位前辈高手有html的窗口
弹出
代码,最好是关闭IE浏览器然后
弹出
新的窗 无标题文档 function MsgBox() //声明标识符 { alert("我是
对话框
的内容"); //
弹出
对话框
} 扩展资料:方法参数详解 参数解释: window.open
弹出
新窗口的命令; 'page.html'
弹出
窗口的文件名; 'newwindow'
弹出
窗口的名字(不是文件名)。在做
网页
时有时需要点击...
html
页面
弹出
聊天框,
网页
弹出
在线交流聊天窗口的功能如何实现 - 快商通
网页
弹出
在线交流聊天窗口的功能如何实现作者:快商通发布时间:2020年11月05日阅读量:摘要:
网页
在线聊天功能是在企业网站中用户跟客服人员在线咨询沟通交流的常见功能,可以通过在
网页
中添加在线客服js代码调用客服聊天窗口的方式快速实现。本文将详细介绍
网页
弹出
在线交流
对话框
的方法。
网页
在线聊天
网页
在线聊天是什么
网页
在线聊天是网站常见的即时通讯功能,用户进入网站进行浏览时
页面
会自动
弹出
请求聊天的窗口,...
Android使用Activity用作
弹出
式
对话框
2、对
对话框
内控件的事件的处理,都独立出来在一个类中,调用的地方仅需要startActivity()就可以,这样可以使代码结构上更加清晰。2、在style.xml中定义一个theme(背景透明,无标题,动画效果),一般Activity默认动画效果右进右出,我们可以覆盖。1、显示位置的设置,直接就是一个layout.xml随心所遇的感觉,可以实现在任何位置。android:text=“登录
网页
版”android:text=“发起聊天”android:text=“听筒模式”android:text=“扫一扫”
基于层的
网页
弹出
提示,可移动,
网页
变灰
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta htt...
ASP
28,403
社区成员
356,942
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章