爱易网
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 浏览次数:20353 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<!--将下面的代码复制到<body>~</body>里--> <script> var scrollerwidth=97 var scrollerheight=111 var scrollerbgcolor='#FFFFFF' var pausebetweenimages=3000 //more javascript from http://www.aiyiweb.com var slideimages=new Array() slideimages[0]='<a href=http://www.aiyiweb.com>爱易网WEB开发</a><br><br><a href=http://www.aiyiweb.com>爱易网WEB开发</a><br><br><a href=http://www.aiyiweb.com>爱易网WEB开发</a>' slideimages[1]='<a href=http://www.aiyiweb.com>爱易网WEB开发</a><br><br><a href=http://www.aiyiweb.com>爱易网WEB开发</a><br><br><a href=http://www.aiyiweb.com>爱易网WEB开发</a>' slideimages[2]='<a href=http://www.aiyiweb.com>爱易网WEB开发</a><br><br><a href=http://www.aiyiweb.com>爱易网WEB开发</a><br><br><a href=http://www.aiyiweb.com>爱易网WEB开发</a>' slideimages[3]='<a href=http://www.aiyiweb.com>爱易网WEB开发</a><br><br><a href=http://www.aiyiweb.com>爱易网WEB开发</a><br><br><a href=http://www.aiyiweb.com>爱易网WEB开发</a>' if (slideimages.length>1) i=2 else i=0 function move1(whichlayer){ tlayer=eval(whichlayer) if (tlayer.top>0&&tlayer.top<=4){ tlayer.top=0 setTimeout("move1(tlayer)",pausebetweenimages) setTimeout("move2(document.main.document.second)",pausebetweenimages) return } if (tlayer.top>=tlayer.document.height*-1){ tlayer.top-=4 setTimeout("move1(tlayer)",100) } else{ tlayer.top=scrollerheight tlayer.document.write(slideimages[i]) tlayer.document.close() if (i==slideimages.length-1) i=0 else i++ } } function move2(whichlayer){ tlayer2=eval(whichlayer) if (tlayer2.top>0&&tlayer2.top<=4){ tlayer2.top=0 setTimeout("move2(tlayer2)",pausebetweenimages) setTimeout("move1(document.main.document.first)",pausebetweenimages) return } if (tlayer2.top>=tlayer2.document.height*-1){ tlayer2.top-=4 setTimeout("move2(tlayer2)",100) } else{ tlayer2.top=scrollerheight tlayer2.document.write(slideimages[i]) tlayer2.document.close() if (i==slideimages.length-1) i=0 else i++ } } function move3(whichdiv){ tdiv=eval(whichdiv) if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=4){ tdiv.style.pixelTop=0 setTimeout("move3(tdiv)",pausebetweenimages) setTimeout("move4(second2)",pausebetweenimages) return } if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){ tdiv.style.pixelTop-=4 setTimeout("move3(tdiv)",100) } else{ tdiv.style.pixelTop=scrollerheight tdiv.innerHTML=slideimages[i] if (i==slideimages.length-1) i=0 else i++ } } function move4(whichdiv){ tdiv2=eval(whichdiv) if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=4){ tdiv2.style.pixelTop=0 setTimeout("move4(tdiv2)",pausebetweenimages) setTimeout("move3(first2)",pausebetweenimages) return } if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){ tdiv2.style.pixelTop-=4 setTimeout("move4(second2)",100) } else{ tdiv2.style.pixelTop=scrollerheight tdiv2.innerHTML=slideimages[i] if (i==slideimages.length-1) i=0 else i++ } } function startscroll(){ if (document.all){ move3(first2) second2.style.top=scrollerheight } else if (document.layers){ move1(document.main.document.first) document.main.document.second.top=scrollerheight+5 document.main.document.second.visibility='show' } } window.onload=startscroll if (document.layers) document.write(slideimages[0]) if (document.layers) document.write(slideimages[1]) if (document.layers) document.write(slideimages[0]) if (document.all){ document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+'">') document.writeln('<div style="
上一篇:JS实现的腾讯QQ窗口抖动效果代码
下一篇:表格中可以上下移动的表格
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
中移动落马高管盘点:广东移动成反腐重地
传谷歌开发者大会发布Android 4.3 并非5.0版本
小米2S试水高端化 纯“性价比”玩法已成过去式
FB上广告费用昂贵而且效果不及Twitter
阿里巴巴上市后雅虎将面临更大的业绩压力
苹果收购Beats交易或将延期尚需解决5大问题
承载京东C2C野心的拍拍网:梦想丰满,现实骨感
余额宝收益率跌破5% 银行系宝宝收益率赶超
流浪汉高考状元终于找到工作:月薪3000做程序员很满意
推荐阅读
更多>
去看看外面的世界吧!别窝里斗了,中国在线旅游商们
微软大幅调整Bing在华策略:从高大上到接地气
雅安地震 绝不宽恕应用人们爱心的骗子!
携程艺龙联手死磕同程 价钱烽烟蔓延至机票
苹果App Store被大量刷榜:iTunes账号成帮凶
虚拟运营商们更像三大运营商的“二道贩子”
马云的SNS之梦有了新目标 收购“微博”
互联网情色众多 Facebook与9158态度大不同
微软提示XP只剩365天寿命:用户被绑架?
百视通:Xbox One汉化获批 游戏迷欢呼吧
猎豹移动上市押海外市场 与小米有合作空间
原万网CTO周雷加盟亿玛 出任CTO一职
中电信率先推移动转售业务 中下旬批量上市
小微型IDC云化趋势加剧 云计算未来或现终极模式
易信工具性优势突出 丁磊三板斧或先砍在飞信上
中移动财报外的"五座大山":运营商沦为走秀陪衬
FDD牌照短期不会发放 联通电信暗自提速建网
英特尔涉嫌垄断 欧盟或开出史上最高罚单
淘宝公布新规:升级售假卖家惩罚力度
传诺基亚Lumia928下月推出 将与iPhone5看齐