不能,只能用程序来实现给你个代码自己看看吧,图片你自己找一个吧
<html>
<head>
<title>Up scroll</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body bgcolor="cccccc"> <div id="demo" style="overflow:hidden;height:200;width:96;">
<div id="demo1" >
<img src="images/1.gif" width="96" height="96">
<img src="images/2.gif" width="96" height="96">
<img src="images/3.gif" width="96" height="96">
</div>
<div id="demo2" ></div>
</div>
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML //克隆demo1为demo2
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0) //当滚动至demo1与demo2交界时
demo.scrollTop-=demo1.offsetHeight //demo跳到最顶端
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed) //设置定时器
demo.onmouseover=function() {clearInterval(MyMar)}//鼠标移上时清除定时器达到滚动停止的目的
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}//鼠标移开时重设定时器
</script>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货