爱易网
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 浏览次数:20218 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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"
上一篇:狡猾的按钮特效
下一篇:网页限时跳转
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
三星起诉LG在冰箱广告中玷污其企业笼统
手游市场乱象丛生 受资本热捧野蛮成长
用友软件股价逆势下跌 再融资方案现曙光
三问刘强东:京东为何近来火气这么大?
中国电信内外受困 去电信化思绪待改
惠普董事长莱恩辞职 为巨额财务减记埋单
苹果App Store被大量刷榜:iTunes账号成帮凶
中国移动4G资费调整方案6月1日起正式实施
陈天桥之鉴:产品创新被扼杀那些事
推荐阅读
更多>
成本效益全兼顾 混合云市场前景显现
传运营商高层将变化 专家称需体制革新
频繁自杀 折射媒体变革中的媒体人迷茫与压力并存
中移动本月推手机钱包 iPhone遭边缘化
OPPO创始人陈明永:我们是怎么做营销的
马云自称在美国曾被绑票
高通拼抢国际芯片市场 联发科海外拓展难安心
2018年阿里云双11活动如何参加?1折优惠大攻略
火狐手机发展前路:或被运营商绑架
微软张亚勤趋势判断:未来三十年属于物理化互联网
富士康人事故骚动方寸 不惜血本下注电商
IT企业人才争夺战打响:员工待遇水涨船高
谷歌安卓全球副总裁为何跳槽中国企业小米?
P2P平台科迅网疑“跑路” 涉及金额超2700万
神奇约炮应用被禁 改名后重返苹果应用商店
完美入股盛大:一桩各怀心事的交易
清点:罗永浩推锤子ROM 小米打法遭模拟
CSS控制字符长度和显示长度
微软很“捉急”:补贴Win8 重加末尾按钮
电话用户9月实名制:运营商监管受质疑