基本語法
<marquee>...</marquee>
移動屬性的設置, 這種移動不僅僅局限於文字,也可以應用於圖片,表格等等方向
direction=left/right/up/down
<marquee direction=left>從右向左移!</marquee>
方式
behavior=scroll/slide/alternate
<marquee behavior=scroll>一圈一圈繞著走!</marquee>
<marquee behavior=slide>隻走一次就歇了!</marquee>
<marquee behavior=alternate>來回走</marquee>
循環
loop=次數;若未指定則循環不止(infinite)
<marqueeloop=3 width=50% behavior=scroll>隻走3趟</marquee>
<marqueeloop=3 width=50% behavior=slide>隻走3趟</marquee>
<marquee loop=3 width=50% behavior=alternate>隻走3趟!</marquee>
速度
scrollamount=#
<marquee scrollamount=20>啦啦啦,我走得好快喲!</marquee>
延時
scrolldelay=#
<marquee scrolldelay=500 scrollamount=100>啦啦啦,我走一步,停一停!</marquee>
外觀(Layout)設置
對齊方式(Align)
align=top/middle/bottom
<marquee align=top width=400>啦啦啦,我會移動耶!</marquee>
底色
bgcolor=rrggbb 16進製數碼,或者是下列預定義色彩:
Black/Olive/Teal/Red/Blue/Maroon/Navy/Gray/Lime,
Fuchsia/White/Green/Purple/Silver/Yellow/Aqua
<marquee bgcolor=Teal>顏色!</marquee>
麵積
height=# width=#
<marquee height=40 width=50% bgcolor=olive>麵積!</marquee>
空白
hspace=# vspace=#
<marquee hspace=20 vspace=20 width=150 bgcolor=silver align=middle>麵積!</marquee>