我想要图片循环播放的代码,
回复讨论(解决方案)
参见这篇文章
http://bbs.csdn.net/topics/390415081
可以用marquee属性实现。
用marquee标签,如下:
不知道你要的横向滚动还是纵向滚动,贴的是纵向:
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
无标题文档 <script> <br /> var timer; <br /> <br /> <br /> function Start() <br /> { <br /> document.getElementById("adv").innerHTML+=document.getElementById("adv").innerHTML; <br /> timer=window.setTimeout("Move()",10); <br /> } <br /> <br /> function Move() <br /> { <br /> var cover=document.getElementById("cover"); <br /> var adv=document.getElementById("adv"); <br /> if(cover.scrollTop<=adv.offsetHeight/2) <br /> { <br /> cover.scrollTop+=2; <br /> } <br /> else <br /> { <br /> cover.scrollTop=0; <br /> } <br /> window.status=cover.scrollTop; <br /> timer=window.setTimeout("Move()",10); <br /> } <br /> <br /> </script>
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn