JS图片循环播放
来源:互联网 发布:红色气质微电影 知乎 编辑:程序博客网 时间:2024/04/27 06:25
<div id=demo style="overflow:hidden;height:90px;width:756px;">
<table align=left
cellpadding=0 cellspace=0 border=0>
<tr>
<td id=demo1 valign=top> <a href="http://www.abic.com.cn/ " target="_blank"> <img src="images/bn7.jpg" hspace="10" border="0"> </a> <a href="http://www.jingyagroup.com/" target="_blank"> <img src="images/bn8.jpg" hspace="10" border="0"> </a> <a href="http://www.aozhimiao.com" target="_blank"> <img src="images/bn9.jpg" hspace="10" border="0"> </a> <a href="http://www.tasly.com/ " target="_blank"> <img src="images/bn10.jpg" hspace="10" border="0"> </a> <a href="http://www.nokia.com.cn/" target="_blank"> <img src="images/bn11.jpg" hspace="10" border="0"> </a> </td>
<td id=demo2 valign=top> </td>
</tr>
</table>
</div>
<script>
var speed=10
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft <=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
<table align=left
cellpadding=0 cellspace=0 border=0>
<tr>
<td id=demo1 valign=top> <a href="http://www.abic.com.cn/ " target="_blank"> <img src="images/bn7.jpg" hspace="10" border="0"> </a> <a href="http://www.jingyagroup.com/" target="_blank"> <img src="images/bn8.jpg" hspace="10" border="0"> </a> <a href="http://www.aozhimiao.com" target="_blank"> <img src="images/bn9.jpg" hspace="10" border="0"> </a> <a href="http://www.tasly.com/ " target="_blank"> <img src="images/bn10.jpg" hspace="10" border="0"> </a> <a href="http://www.nokia.com.cn/" target="_blank"> <img src="images/bn11.jpg" hspace="10" border="0"> </a> </td>
<td id=demo2 valign=top> </td>
</tr>
</table>
</div>
<script>
var speed=10
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft <=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
- JS图片循环播放
- js图片自动循环播放
- 使用js循环播放图片
- js图片从右到左循环播放
- 很实用的js图片循环播放
- js中控制图片的循环播放
- js实现图片顺序播放和循环播放
- JS实现的图片循环播放浏览框
- JS 图片设置时间遍历循环播放!基础,写着玩
- 幻灯片:循环播放图片
- 自动循环播放图片
- iOS-循环图片播放
- 图片循环切换播放
- JS实现的类照片墙图片展示栏&图片循环播放栏
- Java循环播放图片问题
- Gallery3D图片的循环播放
- Android实现图片循环播放
- android viewFlipper 循环播放图片
- Sunshine Stone
- 服务端接口定义另类方法
- WebService的基本概念
- JUnit 4教程入门
- eclipse中使用不同jdk版本的项目设置
- JS图片循环播放
- 推荐一篇ajax的文章
- ASP.NET中文乱码问题解决
- 一直拖拉欠没做完的事情
- 项目经理的工具箱---走出软件作坊:三五个人十来条枪 如何成为开发正规军(三)
- HTML代码注释
- this is my first login
- JTable中随意位置插入列
- 在存储过程中调用外部的动态连接库(MS SQL Server7.0/2000环境)