爱易网
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 浏览次数:20192 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
====1、将以下代码加入到HEML的<body></body>之间: <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="index.htm"><img src="http://www.aiyiweb.com/images/face/image21.gif" border=0" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>' slideimages[1]='<a href="index1.htm"><img src="http://www.aiyiweb.com/UploadPic/userface/no1323.jpg" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>' slideimages[2]='<a href="index2.htm"><img src="http://www.aiyiweb.com/images/face/image21.gif" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>' slideimages[3]='<a href="index3.htm"><img src="http://www.aiyiweb.com/UploadPic/userface/no1323.jpg" 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 } 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) } 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++ } } 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) } 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 //--> </script> <ilayer id="main" width="&{scrollerwidth};" height="&{scrollerheight};" bgcolor="&{scrollerbgcolor};"> <layer id="first" left="0" top="1" width="&{scrollerwidth};"> <script language="JavaScript1.2"> if (
上一篇:狡猾的按钮特效
下一篇:图形循环渐显脚本
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
史玉柱卸任巨人网络CEO 继位人选引猜想
HTC以品牌营销突围 专家建议改变经营思路
特斯拉技术专利开放,要革自己的命?
看,网络文学今日之繁盛;忆,纯真去哪了?
微软张亚勤趋势判断:未来三十年属于物理化互联网
网易云音乐能否为丁磊拿到移动互联网门票?
支付宝钱包支持医保移动缴费 广州成首个试点
评论:阿里为什么不试着收购一家香港媒体呢
携程整合去哪儿陷入僵局 欲联手老对手艺龙
推荐阅读
更多>
IT企业人才争夺战打响:员工待遇水涨船高
Facebook财报前瞻:投资者仍信心不足
在线音乐出现“小米公司”不是没有可能
电信业营改增今起实施 运营商短期利润骤降
诺基亚称不会更名“微软移动” 5月还将发布新品
乐视今日临时停牌 受广电酝酿新规消息影响
富士康人事故骚动方寸 不惜血本下注电商
诺基亚再缩阵线 封锁上海旗舰店全力蜕变
国内云服务商存在尴尬:“远程机房+移动大硬盘”模式
首个释放出搅局房地产信号的互联网公司不是小米而是58同城
从WPS到office365,中国企业能否赶超美国?
湖南卫视扶持芒果TV杀入媒体:版权独播不分销
巨人网络回应央视 否认应用黑客停止诈骗
工商下月将整治手机市场
京东微信入口战略能否助力618大促创流量巅峰
电信运营商员工涌入虚拟运营商,待遇差距多大?
迅雷再次在美提交IPO申请
联想国庆完成收购IBM x86服务器
小米发明的“低价抢购”模式还能管用多久?
开个房刷个卡全世界都知道个人隐私成公开秘密