Home > Technology > 无缝滚动又叫跑马灯效果

无缝滚动又叫跑马灯效果

March 15th, 2010 | 转发腾讯微博 留评论 看评论

<marquee>滚动的文字</marquee>
<marquee behavior=alternate>表示双向移动</marquee>
<marquee direction=left>表示运动方向向左</marquee>
<marquee scrollamount=”5″>表示运动速度</marquee>

<marquee width=400 behavior=alternate direction=left align=middle border=1>弹来弹去跑马灯!</marquee>

<marquee height=”138″ width=”90″ onmouseout=”info.start()” onmouseover=”info.stop()” id=”info” scrollamount=”2″ align=”center” direction=”up”>鼠标放置就停止,鼠标移开就滚动/marquee>

直接使用marquee是有缝儿的,无缝滚动还是需要JS代码的配合。

无缝滚动代码:下载地址

版权声明无缝滚动又叫跑马灯效果系原创文章,转载请注明出自Bruce[http://brucehan.com]

Categories: Technology Tags:
  1. No comments yet.