跑馬燈基本語法:
<marquee>
<img src="網址">
</marquee>
................................................................................................................................................
................................................................................................................................................
圖片跑馬燈範例:
往左:(速度之數量與延遲可調整)
<marquee direction="light" scrollamount="10" scrolldelay="30">
<img src="網址">
</marquee>
................................................................................................................................................
................................................................................................................................................
往右:
<marquee direction="right">
<img src="網址">
</marquee>
................................................................................................................................................
................................................................................................................................................
往上:
<marquee direction="up">
<img src="網址">
</marquee>
................................................................................................................................................
................................................................................................................................................
往下:
<marquee direction="down">
<img src="網址">
</marquee>
................................................................................................................................................
................................................................................................................................................
左右:
<marquee behavior="alternate">
<img src="網址">
</marquee>
................................................................................................................................................
................................................................................................................................................
上下:
<marquee behavior="alternate" direction="up">
<img src="網址">
</marquee>
................................................................................................................................................
................................................................................................................................................
停止:
<marquee onmouseover=this.stop() onmouseout=this.start()>
<img src="網址">
</marquee>
................................................................................................................................................
................................................................................................................................................
往左並上下移動:
<marquee behavior="alternate" direction="up" height="80">
<marquee>
<img src="網址">
</marquee>
</marquee>
................................................................................................................................................
................................................................................................................................................
往左並向下降下:
<marquee direction="down" scrollAmount="3" height="80">
<marquee>
<img src="網址">
</marquee>
</marquee>
................................................................................................................................................
................................................................................................................................................