跑馬燈
〔基本語法〕 只適用於I.E.瀏灠器
<marquee>跑馬燈物件</marquee>
〔加入效果〕
behavior 跑動方式
Alternate 來回晃動
slide 滑動(到達後停止)
scroll 滾動(重覆滑動)
direction 起動方向
scrollAmount 速度
〔範例一〕左右晃動
<marquee behavior=Alternate width=100 height=20><font color=00ff00>跑馬燈物件</font></marquee>
〔範例二〕上下晃動
<marquee behavior=Alternate direction=up width=100 height=22><font color=00ff00>跑馬燈物件</font></marquee>
〔範例三〕不同速度
<marquee behavior=Alternate direction=left scrollAmount=3 width=100 height=20><font color=00ff00>跑馬燈物件</font></marquee>
<marquee behavior=Alternate direction=left scrollAmount=7 width=100 height=20><font color=00ff00>跑馬燈物件</font></marquee>
<marquee behavior=Alternate direction=left scrollAmount=17 width=100 height=20><font color=00ff00>跑馬燈物件</font></marquee>
〔範例四〕滑動與滾動
<marquee behavior=scroll width=100 height=22><font color=00ff00>滾動物件</font></marquee>
<marquee behavior=slide width=300 height=22><font color=00ff00>滑動物件</font></marquee>
〔範例五〕綜合應用
<marquee behavior=Alternate direction=left width=200 height=100 bgcolor=000000>
<marquee behavior=Alternate direction=up width=80 height=100>
<font color=00ffff>跑馬燈物件</font>
</marquee>
</marquee>
|