一、跑馬燈(左進右出式)
| <marquee>要出現的字</marquee> | 
| 一般基本的為左進右出式的跑馬燈,亦可加上背景色。 | 
| <marquee>聖誕快樂VS中秋佳節</marquee> 加上bgcolor=背景顏色的色碼 <marquee bgcolor=ffcc00>聖誕快樂VS中秋佳節</marquee>  | 
二、跑馬燈(左右來回式)
| <marquee behavior=alternate>要出現的字</marquee> | 
| 即為左右來回式的跑馬燈,亦可加上背景色。 | 
| <marquee                   behavior=alternate>聖誕快樂VS中秋佳節</marquee> <marquee behavior=alternate bgcolor=ffcc00>聖誕快樂VS中秋佳節</marquee>  | 
三、格式大小的變化
| <marquee width=m%>要出現的字</marquee> | 
| 除了可改背景外,長度也是可以更改的。 | 
| <marquee                   width=50%>聖誕快樂VS中秋佳節</marquee> <marquee behavior=alternate bgcolor=ffffcc width=70%>聖誕快樂</marquee>  | 
本文引用自 http://www.pcnet.idv.tw/
ru6854 - 跑馬燈 html 教學
http://www.pcnet.idv.tw/pcnet/html/07.htm
