<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<style>
.left { width:305px; height:800px; background:url(bg_1.png) no-repeat; float:left;}
.center { width: 331px; height:800px; background:url(bg_2.png) repeat; float:left;}
.right {width: 364px; height:800px; background:url(bg_3.png) no-repeat; float:left;}
.item { width: 298px; height: 300px; background-color:white; margin:21px 10px; padding:1px; }
.down { width: 298px; height: 132px; background-color:white; margin:21px 10px; padding:1px; }
.main { width: 1000px; height:800px;}
</style>
<body>
<center>
<div class="main">
<div class="left">
</div>
<div class="center">
        <div class="item"><img src="5cm.JPG"></div>
<div class="item"><img src="b+ab.jpg"></div>
<div class="down"><img src="00.JPG"></div>

</div>
<div class="right">
</div>
</div>
</center>
</body>
</html>
这是页面代码,如何让那三张图片自下而上不间断滚动??? 

解决方案 »

  1.   

    网上一搜一把,楼主先找一下,百度比CSDN解决速度还要快的,如果找完之后还是找不到解决办法再来问吧,锻炼楼主自己的学习能力
      

  2.   

    http://www.gzsums.edu.cn/webclass/html/marquee.html
      

  3.   

    <marquee behavior="alternate" scrollamount="5"></marquee>
    scrollamount是设置速度的,数字越大,速度越慢
      

  4.   

    http://www.gzsums.edu.cn/webclass/html/marquee.html
      

  5.   


    达不到效果,需要中间那三个div里的图片在包裹其div<class="center">层里,自下而上滚动??
      

  6.   


    <div id=demo style=overflow:hidden;height:139;width:232;background:#f4f4f4;color:#ffffff><div id=demo1>
    <img src="http://www.makewing.com/lanren/jscode/js-0063/images/01.jpg">
    <img src="http://www.makewing.com/lanren/jscode/js-0063/images/02.jpg">
    <img src="http://www.makewing.com/lanren/jscode/js-0063/images/03.jpg">
    <img src="http://www.makewing.com/lanren/jscode/js-0063/images/04.jpg">
    <img src="http://www.makewing.com/lanren/jscode/js-0063/images/05.jpg">
    </div>
    <div id=demo2></div>
    </div>
    <script>
    var speed=50
    demo2.innerHTML=demo1.innerHTML
    function Marquee(){
    if(demo2.offsetTop-demo.scrollTop<=0)
    demo.scrollTop-=demo1.offsetHeight
    else{
    demo.scrollTop++
    }
    }
    var MyMar=setInterval(Marquee,speed)
    demo.onmouseover=function() {clearInterval(MyMar)}
    demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
    </script>试试这个吧