爱易网
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 浏览次数:20265 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <script language="JavaScript1.2"> var scroller_width=150 var scroller_height=115 var bgcolor='#E0EFD1' var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds) var scrollercontent=new Array() //Define scroller contents. Extend or contract array as needed scrollercontent[0]='欢迎光临 <a href="http://www.k688.com">爱易网</a>多呆一会,你一定会有许多收获的哟!' scrollercontent[1]='谢谢你光临 <a href="http://www.k688.com">爱易网</a>,多呆一会,你一定会有许多收获的哟!' scrollercontent[2]='下次一定还要光临 <a href="http://www.k688.com">爱易网</a>哟,你一定会有许多收获的哟!' ////NO need to edit beyond here///////////// var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1 var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1 if (ie4||dom) document.write('<div style="position:relative;width:'+scroller_width+';height:'+scroller_height+';overflow:hidden"><div id="canvas0" style="position:absolute;background-color:'+bgcolor+';width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas1" style="position:absolute;background-color:'+bgcolor+';width:'+scroller_width+';height:'+scroller_height+';top:'+scroller_height+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>') else if (document.layers){ document.write('<ilayer id=tickernsmain visibility=hide width='+scroller_width+' height='+scroller_height+' bgColor='+bgcolor+'><layer id=tickernssub width='+scroller_width+' height='+scroller_height+' left=0 top=0>'+scrollercontent[0]+'</layer></ilayer>') } var curpos=scroller_height*(1) var degree=10 var curcanvas="canvas0" var curindex=0 var nextindex=1 function moveslide(){ if (curpos>0){ curpos=Math.max(curpos-degree,0) tempobj.style.top=curpos } else{ clearInterval(dropslide) if (crossobj.filters) crossobj.filters.alpha.opacity=100 else if (crossobj.style.MozOpacity) crossobj.style.MozOpacity=1 nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1" tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas) tempobj.innerHTML=scrollercontent[curindex] nextindex=(nextindex<scrollercontent.length-1)? nextindex+1 : 0 setTimeout("rotateslide()",pause) } } function rotateslide(){ if (ie4||dom){ resetit(curcanvas) crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas) crossobj.style.zIndex++ if (crossobj.filters) document.all.canvas0.filters.alpha.opacity=document.all.canvas1.filters.alpha.opacity=20 else if (crossobj.style.MozOpacity) document.getElementById("canvas0").style.MozOpacity=document.getElementById("canvas1").style.MozOpacity=0.2 var temp='setInterval("moveslide()",50)' dropslide=eval(temp) curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0" } else if (document.layers){ crossobj.document.write(scrollercontent[curindex]) crossobj.document.close() } curindex=(curindex<scrollercontent.length-1)? curindex+1 : 0 } function resetit(what){ curpos=scroller_height*(1) var crossobj=ie4? eval("document.all."+what) : document.getElementById(what) crossobj.style.top=curpos } function startit(){ crossobj=ie4? eval("document.all."+curcanvas) : dom? document.getElementById(curcanvas) : document.tickernsmain.document.tickernssub if (ie4||dom){ crossobj.innerHTML=scrollercontent[curindex] rotateslide() } else{ document.tickernsmain.visibility='show' curindex++ setInterval("rotateslide()",pause) } } if (ie4||dom||document.layers) window.onload=startit </script> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
上一篇:狡猾的按钮特效
下一篇:快速滚动的文字
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
一个非脑残米粉的思考:小米“成功之道”如何炼成
工商下月将整治手机市场
雷军收买腾讯金山股份:持股比例升至27%
亚马逊落户上海自贸区:美国货直邮中国
从百度世界大会看大数据
携程整合去哪儿陷入僵局 欲联手老对手艺龙
网曝富士康500万iphone遭退货是确证的事
微软提示XP只剩365天寿命:用户被绑架?
魅族黄章惹怒芙蓉姐姐 将跨界推女神手机
推荐阅读
更多>
湘鄂情剥离餐饮业务进军大数据的底气在哪里?
三星石墨烯制备技术获突破
王建宙解构OTT效劳 中移动重塑飞信平台
170号码扎堆上市:手机话费私人定制时代到来?
HDS发布《2013中国CIO洞察白皮书》
苹果联合创始人炮轰鲍尔默“一直都在吃老本”
小米移动芯片:英伟达退出,终会加强与联发科合作
唯品会股价飙升 引天猫当当京东进军闪购
电信业营改增今起实施 运营商短期利润骤降
微软很“捉急”:补贴Win8 重加末尾按钮
估值增长9.8% 阿里IPO前市值达2450亿美元
世界杯让耐克阿迪大打出手 谁能劈开用户大脑?
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
任正非:喜马拉雅山的水为什么不能流入亚马逊河?
中国电信内外受困 去电信化思绪待改
用户喊话当当网:我彻底把你们丢弃了
iPhone 6将于10月17日内地上市:售5288元起
“世界杯+618”集体磨刀的本质是绑架全民
评论:阿里为什么不试着收购一家香港媒体呢
马云的SNS之梦有了新目标 收购“微博”