爱易网
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 浏览次数:20208 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>爱易网网页特效演示,公告栏的滚动图片</title> </head> <body> <script language="JavaScript1.2"> var scrollerwidth=232; var scrollerheight=94; var scrollerbgcolor='white'; var pausebetweenimages=3000; var slideimages=new Array() slideimages[0]='<a href="#"><img src="http://img.aiyiweb.com/mylogo3.gif" alt="精彩哦" border=0" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>'; slideimages[1]='<a href="#"><img src="http://img.aiyiweb.com/mylogo1.gif" alt="好看哦" border=0" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></a>'; slideimages[2]='<a href="#"><img src="http://img.aiyiweb.com/mylogo.gif" alt="好看哦" 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="&{scrollerbgcolor};"> <layer id="first" left="0" top="1" width="&{scrollerwidth};"> <script language="JavaScript1.2"> if (document.layers) document.write(slideimages[0]) </script> </layer> <layer id="second" left="0" top="0" width="&{scrollerwidth};" visibility="hide"> <script language="JavaScript1.2"> if (document.layers) document.write(slideimages[1]) </script>
上一篇:狡猾的按钮特效
下一篇:禁止图片下载
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
只有切到刚需痛点,漫画APP才能走下去
从3G牌照发放看中国4G规划效果
惠普中国转型只是缩影 未来开展不可预期
“论文查重”网店一月收入竟过百万
苹果iWatch或使用量产液态金属 将取代玻璃
微软觊觎移动互联市场:手机未出渠道先行
中移动五大基地将整改成公司:被指易滋生腐败
摩托罗拉移动裁员关闭德州Moto X手机工厂
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
推荐阅读
更多>
2019双12阿里云老用户怎么参加拼团活动 老用户拼团方法
中移动“重启”自有品牌手机成败难料
新一代iPhone11月底国内上市 支持TD制式
迅雷欲3300万美元收购金山快盘 预计9月完成
手游市场乱象丛生 受资本热捧野蛮成长
搜房网遭遇做空 利益保送成“猎杀”焦点
淘宝公布新规:升级售假卖家惩罚力度
摩托罗拉移动裁员关闭德州Moto X手机工厂
HDS发布《2013中国CIO洞察白皮书》
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
互联网情色众多 Facebook与9158态度大不同
阿里物流搭上邮政:京东,我们在终点等你!
苏宁双线同价遇难题:第一个吃螃蟹不轻松
iSuppli:上网本将于2015年退出市场
阿里巴巴上市后雅虎将面临更大的业绩压力
Skype周年:与微软联姻到底有没有未来?
世界杯让耐克阿迪大打出手 谁能劈开用户大脑?
OPPO创始人陈明永:我们是怎么做营销的
三大运营商获通知大减营销费 传3年减400多亿
途牛旅游网今晚挂牌纳斯达克 融资1亿美元