爱易网
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 浏览次数:20204 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>爱易网网页特效演示, 图片上下循环滚动的公告导航</title> </head> <body> <script language="JavaScript1.2"> <!-- /*设置下面的参数。 设置scrollerwidth和scrollerheight参数,设置成滚动显示的图片中尺寸最大的。*/ var scrollerwidth=400 var scrollerheight=66 var scrollerbgcolor='white' //修改下面的每个图间暂停时间,本例为3秒。 var pausebetweenimages=3000 //改变下面的图像地址,如果希望logo都是带连接的,只要将#改为相应的链接地址。 var slideimages=new Array() slideimages[0]='<a href=#><img src="http://www.aiyiweb.com/UploadPic/userface/no1323.jpg" border=0" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>' slideimages[1]='<a href=#><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[2]='<a href=#><img src="http://www.aiyiweb.com/UploadPic/userface/no1323.jpg" border=0" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>' slideimages[3]='<a href=#><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>' //////下面的行不要编辑/////////////////////// 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="&{scroll
上一篇:狡猾的按钮特效
下一篇:形式多变的图片导航
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
谷歌安卓全球副总裁为何跳槽中国企业小米?
阿里收购UC 五年姻缘换来移动新格局
虚拟运营商温度有多高?降温OR升温内外有别
都是300元内 乐视盒子与小米盒子对比体验
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
传诺基亚5月14日发布会推出Lumia 950
虚拟运营商们更像三大运营商的“二道贩子”
中移动推动感地带3G网聊卡 火拼微信沃卡
乐视今日临时停牌 受广电酝酿新规消息影响
推荐阅读
更多>
三大运营商获通知大减营销费 传3年减400多亿
金山毒霸安全中心: XP退役后首个高危漏洞来了
充斥着假消息负能量的“秘密”缺乏普适性
高通拼抢国际芯片市场 联发科海外拓展难安心
国内首个大数据系列指数今日发布
中方抗议美方限购IT设备 紧张关系加剧
二维码支付大战的号角注定已经吹响,尚需标准发放
组建铁塔公司倒逼运营商改革 或加速4G网建设
评论:马云的成功建立在什么基础上很值得怀疑
牟贵先挂帅 国美在线“价钱战”昔日开打
传运营商高层将变化 专家称需体制革新
亚马逊落户上海自贸区:美国货直邮中国
不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机
联发科享用价钱战 专利难以摆脱高通
微信将商场O2O战火烧到了阿里巴巴老家
京东封杀财付通:终极目标是电商生态圈
360涉足搜索范围 百度市场份额面临应战
墨迹也要做硬件,工具类应用如何“变异”的
百度对糯米来说到底意味着什么?
国美痛批网购七宗罪 用短暂盈利输了未来