爱易网
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 浏览次数:20120 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <script language="JavaScript1.2"> //SET TOOLTIP DESCRIPTIONS BELOW //Extend or contract array as needed var description=new Array() description[0]='这是说明内容1' description[1]='<b>这是说明内容2' description[2]='<i>这是说明内容3' //Do not edit below here iens6=document.all||document.getElementById ns4=document.layers <!--GLOBAL VARIABLES--> var thename var theobj var thetext var winHeight var winPositionFromTop var winWidth var startH=2 var openTimer <!--END GLOBAL VARIABLES--> <!--GLOBAL FUNCTIONS--> function setObj(text,theswitch,inwidth,inheight) { thetext=text if(iens6){ thename = "viewer" theobj=document.getElementById? document.getElementById(thename):document.all.thename winHeight=100 if(iens6&&document.all) { winPositionFromTop=document.body.clientHeight winWidth=(document.body.clientWidth-document.body.leftMargin) } if(iens6&&!document.all) { winPositionFromTop=window.innerHeight winWidth=(window.innerWidth-(document.body.offsetLeft+30)) } if(theswitch=="override") { winWidth=inwidth winHeight=inheight } theobj.style.width=winWidth theobj.style.height=startH if(iens6&&document.all) { theobj.style.top=document.body.scrollTop+winPositionFromTop theobj.innerHTML = "" theobj.insertAdjacentHTML("BeforeEnd","<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>") } if(iens6&&!document.all) { theobj.style.top=window.pageYOffset+winPositionFromTop theobj.innerHTML = "" theobj.innerHTML="<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>" } } if(ns4){ thename = "nsviewer" theobj = eval("document."+thename) winPositionFromTop=window.innerHeight winWidth=window.innerWidth winHeight=100 if(theswitch=="override") { winWidth=inwidth winHeight=inheight } theobj.moveTo(0,eval(window.pageYOffset+winPositionFromTop)) theobj.width=winWidth theobj.clip.width=winWidth theobj.document.write("<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>") theobj.document.close() } viewIt() } function viewIt() { if(startH<=winHeight) { if(iens6) { theobj.style.visibility="visible" if(iens6&&document.all) { theobj.style.top=(document.body.scrollTop+winPositionFromTop)-startH } if(iens6&&!document.all) { theobj.style.top=(window.pageYOffset+winPositionFromTop)-startH } theobj.style.height=startH startH+=2 openTimer=setTimeout("viewIt()",10) } if(ns4) { theobj.visibility = "visible" theobj.moveTo(0,(eval(window.pageYOffset+winPositionFromTop)-startH)) theobj.height=startH theobj.clip.height=(startH) startH+=2 openTimer=setTimeout("viewIt()",10) } }else{ clearTimeout(openTimer) } } function stopIt() { if(iens6) { theobj.innerHTML = "" theobj.style.visibility="hidden" startH=2 } if(ns4) { theobj.document.write("") theobj.document.close() theobj.visibility="hidden" theobj.width=0 theobj.height=0 theobj.clip.width=0 theobj.clip.height=0 startH=2 } } <!--END GLOBAL FUNCTIONS--> </script> <layer name="nsviewer"
上一篇:狡猾的按钮特效
下一篇:网页限时跳转
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
宽带中国战略明确 运营商建设成本超6000亿
欧盟控诉苹果在爱尔兰非法进行税收交易
流浪汉高考状元终于找到工作:月薪3000做程序员很满意
揭秘:阿里巴巴“无人认领”的三成股权都归谁
苹果多色彩!葫芦里究竟卖的什么药
二代 iPad Air将配备2GB内存?为同屏多任务做准备
薛蛮子取保后首次发微博表示:辜负你们了
易信工具性优势突出 丁磊三板斧或先砍在飞信上
十亿美元的告别礼:三星为何要大举重组?
推荐阅读
更多>
微信收费形式三选一 腾讯或变身运营商
优酷土豆兼并一年:依然处于烧钱形状
iPhone 6将于10月17日内地上市:售5288元起
阿里入股虎嗅:媒体的脊梁弯了?未必!
网易云音乐能否为丁磊拿到移动互联网门票?
FDD牌照短期不会发放 联通电信暗自提速建网
中国移动承诺再降4G资费 网络漫游至50个国家
聚美向左,唯品向右,怎能耐得住高跟和红唇的诱惑!
特斯拉将获上海免费牌照 充电桩面临双重标准
OPPO创始人陈明永:我们是怎么做营销的
马云自称在美国曾被绑票
中移动将推出多项4G资费新政
三星维修新规:Galaxy S4主板进水也收费修
P2P平台科迅网疑“跑路” 涉及金额超2700万
陈天桥之鉴:产品创新被扼杀那些事
谷歌新技术进入iOS平台:将叫板苹果Siri
埃里克杰克森:阿里IPO估值至少1500亿美元
薛蛮子取保后首次发微博表示:辜负你们了
传陌陌或12月赴美IPO 估值约30亿美元
工商总局开查电商“七日退货”