爱易网
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 浏览次数:20191 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<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"
上一篇:狡猾的按钮特效
下一篇:网页限时跳转
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
小灵通两年都无信号 顾客起诉联通公司
微信企业号必须搬走四座大山,否则只能铩羽而归!
组建铁塔公司倒逼运营商改革 或加速4G网建设
同程旅游融资后变土豪 如何烧钱占领市场?
小微型IDC云化趋势加剧 云计算未来或现终极模式
揭秘:阿里巴巴“无人认领”的三成股权都归谁
任正非:喜马拉雅山的水为什么不能流入亚马逊河?
美图手机2问世 三大问题令其市场销量堪忧
曹国伟:微博将关注Facebook和Twitter
推荐阅读
更多>
打车软件竞争白热化:有冷兵器时代意味
完美入股盛大:一桩各怀心事的交易
途牛开盘价9美元 与发行价持平
200美元英特尔Android笔记本行将到来
PC迎9年来出货量新低 平板电脑渐成主流
京东封杀财付通:终极目标是电商生态圈
火狐手机发展前路:或被运营商绑架
微软觊觎移动互联市场:手机未出渠道先行
打车软件“明补变暗补”背后的小算盘
刘强东向总理建言:打击有组织有规模的售假商家
支付宝曝平安破绽:转账信息被谷歌抓取
富士康人事故骚动方寸 不惜血本下注电商
迅雷高管解读财报:收购快盘可快速融入小米
二代 iPad Air将配备2GB内存?为同屏多任务做准备
地图导航骤起杀机 百度高德重新定义商业模式
阿朗力避步北电后尘 急切停止自我革新
HDS发布《2013中国CIO洞察白皮书》
谷歌欲收买WhatsApp添加砝码 对方否认
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
支付宝全面封杀比特币:充值码淘宝店或遭封禁