论坛常用弹出提示层居中显示效果

1个月前 (04-09 20:28)阅读44回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值4714
  • 级别管理员
  • 主题942
  • 回复2
楼主

论坛常用的一种提示层弹出特效,当用户一打开网页立即弹出注册图层,几秒钟后自动隐藏起来,这个提示层带有关闭功能。

<!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 http-equiv="content-type" content="text/html;charset=gb2312">
<meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren">
<meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。">
<title>论坛常用弹出提示层居中显示效果_武鸣人</title>
</head>
<body>
<a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr>
<!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。-->
<script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script>
<script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
<script type="text/javascript">
function divguanbi(){
document.getElementById('wuming_ren_1').style.display='none';
document.getElementById('wuming_ren_2').style.display='none';
document.cookie='x=n';
}
if ( document.cookie.indexOf('x=n')<0 ){
document.writeln("<div id=\"wuming_ren_1\" style=\"background-color:#000000;filter:alpha(opacity=80);width:100%;position:absolute;z-index:999999998;height:"+(document.body.clientHeight+40)+"px;left:0px;top:0px;\"></div>");
document.writeln("<div id=\"wuming_ren_2\" style=\"background-color:#FFFFFF;position:absolute;z-index:999999999;padding:30px;height:auto;width:50%;border:thick solid #CCCCCC;left:25%;top:"+(document.documentElement.scrollTop+160)+"px;margin:auto;font-size:14px;line-height:150%;\">");
document.writeln("<strong>欢迎您!</strong><br>欢迎来到:<a href='https://www.wuming.ren' target='_blank'>武鸣人</a><br>本站网址:www.wuming.ren<br>");
document.writeln("<br><a href=\"javascript:divguanbi();void(0)\">[关闭并且不再提示]</a></div>");
window.onscroll=function(){document.getElementById("wuming_ren_2").style.top=(document.documentElement.scrollTop+160+"px");}
}
</script>
</body>
</html>


0
0
收藏0
回帖

论坛常用弹出提示层居中显示效果 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息