marquee
Marquee is the html tag, all the major browsers are compatible for creating scrolling text.
Scroll direction direction
<!--滚动方向 direction 4个值 up down left right 默认从右向左-->
<marquee direction="up">我想上滚动</marquee>
A rolling behavior
<!--3个值 scroll-循环滚动 slide-只滚动一次 alternate-来回滚动 默认循环滚动-->
<marquee behavior="slide">我只滚动一次</marquee>
Scrolling speed scrollamount
<!--值越大,滚动速度越快 一般5-10比较适宜消息观看-->
<marquee scrollamount="5">我是速度为5的滚动</marquee>
Scroll delay scrolldelay
<!--值越大,滚动速度越慢,通常不设置-->
<marquee scrolldelay="90">我延迟滚动</marquee>
Scroll circulation loop
<!-- 默认值-1或infinite 表示无限循环滚动 loop="数值" 表示滚动相应的次数-->
<marquee loop="2">我是loop循环滚动</marquee>
Scroll Range Control width height
scrolling background color bgcolor
//宽100px 高90px 背景色为#f5f5f5的滚动区域
<marquee direction="up" width="100" height="90" bgcolor="#f5f5f5" >
<p>开发工程师</p>
<p>设计师</p>
<p>前端开发</p>
</marquee>
Scroll space hspace- horizontal margin vspace- vertical margin
<marquee direction="up" width="50" hspace="20" vspace="10" >
<p>开发工程师</p>
<p>设计师</p>
<p>前端开发</p>
</marquee>
Scroll event
//鼠标悬停,滚动停止 鼠标离开,滚动继续
<marquee direction="up" onmouseover="this.stop()" onmouseout="this.start()">
<p>开发工程师</p>
<p>设计师</p>
<p>前端开发</p>
</marquee>