2017宋茜韩国人气:dreamwear怎样让图片滚动起来

来源:百度文库 编辑:高考问答 时间:2024/05/12 07:39:56
我想做一个网页,可是不知道用会代码将图片滚动是连续的的让鼠标放到图片上它就停止,移动也是继续。还它滚动的时间速度怎么调整的!请大家帮帮我好吗?

1.<marquee> ... </marquee>
移动属性的设置 ,这种移动不仅仅局限于文字,也可以应用于图片,表格等等
2.方向
<direction=#> #=left, right ,up ,down <marquee direction=left>从右向左移!</marquee>
3.方式
<bihavior=#> #=scroll, slide, alternate <marquee behavior=scroll>一圈一圈绕着走!</marquee>
<marquee behavior=slide>只走一次就歇了!</marquee>
<marquee behavior=alternate>来回走</marquee>
4.循环
<loop=#> #=次数;若未指定则循环不止(infinite) <marquee loop=3 width=50% behavior=scroll>只走 3 趟</marquee> <P>
<marquee loop=3 width=50% behavior=slide>只走 3 趟</marquee>
<marquee loop=3 width=50% behavior=alternate>只走 3 趟!</marquee>
5.速度
<scrollamount=#> <marquee scrollamount=20>啦啦啦,我走得好快哟!</marquee>
6.延时
<scrolldelay=#> <marquee scrolldelay=500 scrollamount=100>啦啦啦,我走一步,停一停!</marquee>

7.<marquee direction="up" onmouseover=this.stop() onmouseout=this.start()>我想鼠标放上来就停止</marquee>