爱易网
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特效
图片上下滚动js脚本
图片上下滚动js脚本
日期:2014-05-18 浏览次数:20359 次
以下是程序代码
<title>图片上下滚动效果,sky整理收集。</title> <a href="<#ZC_BLOG_HOST#>">站长特效网</a>,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。<hr> <!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.net,zzjs@msn.com,用.net打造靓站--> <script language="JavaScript1.2"> <!-- /*设置下面的参数。 设置scrollerwidth和scrollerheight参数,设置成滚动显示的图片中尺寸最大的。*/ var scrollerwidth=140 var scrollerheight=40 var scrollerbgcolor='white' //每个图间暂停3秒。 var pausebetweenimages=3000 //边界下面的行,如果希望logo都是带连接的,只要加上<a>标签即可。 var slideimages=new Array() slideimages[0]='<a href="http://zzjs.net"><img src="/image/zzjs.ico" style="cursor:pointer;" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>' slideimages[1]='<a href="<#ZC_BLOG_HOST#>"><img src="/image/zzjs.ico" style="cursor:pointer;" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>' slideimages[2]='<a href="http://zzjs.net/"><img src="/image/zzjs.ico" style="cursor:pointer;" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>' slideimages[3]='<a href="http://zzjs.net/"><img src="/image/zzjs.ico" style="cursor:pointer;" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>' //尽管填加更多的。 //////以下不要修改//////////////// if (slideimages.length>1) i=2 else i=0 function move1(whichlayer){ tlayer=eval(whichlayer) if (tlayer.top>0&&tlayer.top<=5){ tlayer.top=0 setTimeout("move1(tlayer)",pausebetweenimages) setTimeout("move2(document.main.document.second)",pausebetweenimages) return }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 if (tlayer.top>=tlayer.document.height*-1){ tlayer.top-=5 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<=5){ tlayer2.top=0 setTimeout("move2(tlayer2)",pausebetweenimages) setTimeout("move1(document.main.document.first)",pausebetweenimages) return } if (tlayer2.top>=tlayer2.document.height*-1){ tlayer2.top-=5 setTimeout("move2(tlayer2)",100) }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 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<=5){ tdiv.style.pixelTop=0 setTimeout("move3(tdiv)",pausebetweenimages) setTimeout("move4(second2)",pausebetweenimages) return } if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){ tdiv.style.pixelTop-=5 setTimeout("move3(tdiv)",100) } else{ tdiv.style.pixelTop=scrollerheight tdiv.innerHTML=slideimages[i] if (i==slideimages.length-1) i=0 else i++ } }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 function move4(whichdiv){ tdiv2=eval(whichdiv) if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){ tdiv2.style.pixelTop=0 setTimeout("move4(tdiv2)",pausebetweenimages) setTimeout("move3(first2)",pausebetweenimages) return } if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){ tdiv2.style.pixelTop-=5 setTimeout("move4(second2)",100) }//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 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 (doc
上一篇:狡猾的按钮特效
下一篇:图片左右滑动效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
英特尔涉嫌垄断 欧盟或开出史上最高罚单
网络文学竞争白热化 百度多酷文学网上线
中电信率先推移动转售业务 中下旬批量上市
独立工具APP:为亿级用户的商业化而愁
华为野心布局未来:投资研发5G对赌1毫秒连接
频繁自杀 折射媒体变革中的媒体人迷茫与压力并存
HTC曝出特大丑闻:高管诈骗+商业间谍
美国政府关门可能影响去哪儿等公司IPO
华为美国推出电商网站 发售Mate 2LTE版
推荐阅读
更多>
FDD牌照短期不会发放 联通电信暗自提速建网
微信企业号必须搬走四座大山,否则只能铩羽而归!
英特尔承认,联想最新K系列智能手机放弃英特尔处理器
凑足了升级ios8所需要的5.7G空间,没料到“苹果”却变成“板砖”,iOS8还能一起愉快玩耍吗?
苏宁易购成世界最慢电商 专家称其涉嫌违约
传苹果已告知鸿海:两款新iPhone下月发货
Kindle入华遭遇国内厂商“围剿 ” 电信也参战
巨人网络回应央视 否认应用黑客停止诈骗
苹果30亿美元收购Beats
中电信率先推移动转售业务 中下旬批量上市
美国电影协会在华起诉迅雷侵权 要求赔偿并道歉
苹果多色彩!葫芦里究竟卖的什么药
马斯克的特斯拉能否保持好势头
支付宝27日晚间曝严重破绽:买卖记载可被搜索
首批四款“官方”打车软件发布:均为安卓版本
迅雷再次在美提交IPO申请
传谷歌开发者大会发布Android 4.3 并非5.0版本
雷军会做赔钱生意?迅雷跌破发行价 市值仅7亿美元
从雷军的“互联网七字诀”告诉你一个非妖魔化的小米
史玉柱此刻离任:营销巨匠为新游戏炒作?