爱易网
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特效
随机跳出提示窗
随机跳出提示窗
日期:2014-05-18 浏览次数:20141 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 第一步:把如下代码加入<body>区域中 <SCRIPT language=JavaScript> bver=navigator.appVersion.split(";"); function totdstart(){ if(bver[1].match("5.")) rv=window.showModalDialog("totder.htm",null,"dialogWidth:430px;dialogHeight:280px;center:1;scroll:0;help:0;status:0"); else rv=window.showModalDialog("totder.htm",null,"dialogWidth:430px;dialogHeight:300px;center:1;scroll:0;help:0"); nd= new Date(); nd.setTime (nd.getTime()+(365*24*60*60*1000)); cdomain = (location.domain) ? location.domain : null; cpath = (location.domain) ? location.pathname : null; if (rv!=0) SetCookie ("totdc", "true", nd, cpath, cdomain); } function totdinit(){ if (document.all){ if (GetCookie("totdc")!="true") totdstart() else document.body.insertAdjacentHTML('beforeEnd','<Div Id="etotd" style="width:140;position:absolute;top:0;left:0;BACKGROUND-COLOR:#B71717;BORDER-BOTTOM:#5C0000 solid 2px;BORDER-LEFT:#FE5E5E solid 2px;BORDER-RIGHT:#5C0000 solid 2px;BORDER-TOP:#FE5E5E solid 2px;font-family:Arial;font-size:8pt;font-weight:bold;text-align:center;padding-top:2px;padding-bottom:2px;color:#FFFFFF;cursor:default" onclick="enable()" onmouseover="mover()" onmouseout="mout()">查看今日提示</Div>'); } } function enable(){ DeleteCookie("totdc"); etotd.innerHTML="今日提示正在打开"; setTimeout('etotd.style.visibility="hidden";totdstart()',1000); } function mover(){ etotd.style.borderLeftColor="#5C0000"; etotd.style.borderRightColor="#FE5E5E"; etotd.style.borderBottomColor="#FE5E5E"; etotd.style.borderTopColor="#5C0000"; etotd.style.paddingLeft="1px"; etotd.style.paddingTop="3px"; } function mout(){ etotd.style.borderLeftColor="#FE5E5E"; etotd.style.borderRightColor="#5C0000"; etotd.style.borderBottomColor="#5C0000"; etotd.style.borderTopColor="#FE5E5E"; etotd.style.paddingLeft="0px"; etotd.style.paddingTop="2px"; } // Cookie Functions - Second Helping (21-Jan-96) // Written by: Bill Dortch, hIdaho Design <bdortch@netw.com> // The following functions are released to the public domain. function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 4) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)); } function DeleteCookie(name){ exp=new Date(); exp.setTime (exp.getTime() - 1); var cval = GetCookie ("name"); document.cookie = name + "=" + cval +"; expires=" + exp.toGMTString(); } </SCRIPT> 第二步:把<body>中的内容改为: <BODY onload=totdinit()> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:计算器(三)
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
CSS控制字符长度和显示长度
IT时代周刊总编辑曹健:投资人刘志硕印象记
工信部或本月17日向联通电信颁发FDD牌照
做大电影,阿里控股公司在港成立影业集团
中移动一季度净利大降:手机补贴增长过快
微软最后的救命稻草Win 8份额继续上升
华为任正非:家族成员不会成为接班人
央行暂停二维码支付及虚拟信用卡 支付宝微信不知情
FB上广告费用昂贵而且效果不及Twitter
推荐阅读
更多>
迪信通神秘免费服务揭谜底:充电宝免费带回家
Facebook财报前瞻:投资者仍信心不足
苹果iWatch或使用量产液态金属 将取代玻璃
戴尔新CEO名单曝光:惠普甲骨文高管在列
开个房刷个卡全世界都知道个人隐私成公开秘密
安全服务机构:公布2014年度最糟糕的25个密码
支付宝服务窗后台首曝光 开放用户消费数据
OPPO创始人陈明永:我们是怎么做营销的
谷歌新技术进入iOS平台:将叫板苹果Siri
搜狐前副总编何毅加盟乐视 任车联网公司CEO
去看看外面的世界吧!别窝里斗了,中国在线旅游商们
从旗下三大业务BG发展看华为的过去现在和未来
王建宙解构OTT效劳 中移动重塑飞信平台
云储存有多远:跨过数据安全问题即可到达
惠普董事长莱恩辞职 为巨额财务减记埋单
雅安地震 绝不宽恕应用人们爱心的骗子!
特斯拉将获上海免费牌照 充电桩面临双重标准
这一次,微软将带给我们什么惊喜?
二代 iPad Air将配备2GB内存?为同屏多任务做准备
独立工具APP:为亿级用户的商业化而愁