爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
模拟ightbox提示框演示特效
模拟ightbox提示框演示特效
日期:2014-05-18 浏览次数:20222 次
以下是HTML网页特效代码,点击运行按钮可查看效果:
以下是程序代码
<!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" /> <title>模拟ightbox提示框DEMO</title> <style type="text/css"> <!-- *{ margin:0; padding:0; } body{ background-color:#FFF; color:#000; text-align:center; font:normal 12px Georgia, "Times New Roman", Times, serif; } img{ max-width:100%; height:auto; border:0; } ul,dl{ list-style-type:none; } .clear{ clear:both; font-size:1px; width:1px; height:1px; visibility:hidden; } div,span,p,h1,h2,h3,h4,h5,h6{ text-align:left; } #btnshow{ margin-top:30px; } #confirmInfo{ position:absolute; width:396px; height:236px; padding:1px; border:1px solid #999; z-index:999; background-color:#FFF; left:50%; top:50%; margin:-120px 0 0 -200px; } #window-title{ width:372px; height:14px; padding:5px 0 5px 24px; background:#0A246A url(ie-icon.gif) 4px 4px no-repeat; color:#FFF; } #window-title h2{ float:left; width:200px; height:14px; overflow:hidden; font-size:13px; } #window-title a, #window-title a:link, #window-title a:hover, #window-title a:visited{ float:right; margin-right:4px; display:blcok; width:16px; height:14px; color:#ffffff; background-image:url(close.gif) #fff; overflow:hidden; /* text-indent:-200px; */ font-size:14px; } #window-title span a:active{ background-image:url(close-act.gif); } #container{ margin:0 auto; margin-top:1px; border-top:1px solid #999; border-bottom:1px solid #FFF; width:396px; height:174px; overflow:hidden; background-color:#D4D0C8; } #container h3{ margin-top:60px; height:14px; font-size:14px; text-align:center; padding:5px 0; } #container p{ margin:0 auto; width:380px; line-height:150%; font-size:14px; height:auto; text-align:center; } #frmEnter{ margin:0 auto; height:22px; padding:6px 5px 6px 6px; border-top:1px solid #999; width:385px; text-align:right; background-color:#D4D0C8; } --> </style> <script language="javascript" type="text/javascript"> <!-- function CreateDiv(){ var btnShow = document.getElementById("btnshow"); if(!btnShow) return false; var isOpear=(navigator.userAgent.indexOf('Opera')>-1); var shadow = document.createElement("div");// 创建透明阴影遮照效果层 // 给新创建的节点设置各个属性 shadow.setAttribute("id","shadow"); shadow.style.position="absolute"; // shadow.style.left="0"; shadow.style.top="0"; shadow.style.width=screen.width;//////////////// shadow.style.height=screen.height;////////////// shadow.style.zIndex="10"; if(!isOpear){// 如果是Opera浏览器则给shadow设置背景色和透明效果 shadow.style.backgroundColor="#06C"; if(document.all){ shadow.style.filter = "alpha(opacity=20)"; } else{ shadow.style.opacity = 0.2; } } var obj=document.createElement("div");// 创建提示框层节点 obj.setAttribute("id","confirmInfo"); obj.style.zIndex="999"; var divTitle = document.createElement("div");// 创建提示标题栏节点 divTitle.setAttribute("id","window-title"); var H2 = document.createElement("h2");// 创建标题节点 H2.innerHTML="爱唱卡充值"
上一篇:狡猾的按钮特效
下一篇:层展开/关闭 运动缓冲效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
微软谷歌高层访韩面前:忌惮三星的崛起
京东封杀财付通:终极目标是电商生态圈
苹果音乐效劳新战略:与唱片商停止流媒体协作
百度“全网寻人”面前的互联网信息枢纽价值
携程艺龙联手死磕同程 价钱烽烟蔓延至机票
解析2014年阿里百度等五大互联网巨头深度布局
成本效益全兼顾 混合云市场前景显现
华为美国推出电商网站 发售Mate 2LTE版
湘鄂情剥离餐饮业务进军大数据的底气在哪里?
推荐阅读
更多>
苹果30亿美元收购Beats
NoomWeight减肥
传运营商高层将变化 专家称需体制革新
中国邮政与阿里合作:邮政网点可做网购自提点
估值增长9.8% 阿里IPO前市值达2450亿美元
“世界杯+618”集体磨刀的本质是绑架全民
看蜗牛如何放水养鱼,盘活生态系统
iPhone 6 Plus要召回是谣言
逆转猜想:如果阿里成为雅虎大股东会怎样?
北京今日实现用支付宝钱包为公交卡充值
二代 iPad Air将配备2GB内存?为同屏多任务做准备
阿里物流搭上邮政:京东,我们在终点等你!
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
苹果MacBook Air劣势渐显 或推新产品改变命运
苹果优势逐渐丧失 传即将推出廉价iPhone
京东联席董事长赵国庆上市前夕离职
工信部或本月17日向联通电信颁发FDD牌照
美国政府关门可能影响去哪儿等公司IPO
历史惊人相似:如今的库克 曾经的鲍尔默
苹果6月20日发布iPhone5S 触摸屏概念股生动