資訊滾動(marquee+JS實現)
阿新 • • 發佈:2019-02-20
Attributes behavior Sets how the text is scrolled within the marquee. Possible values are scroll, slide and alternate. If no value is specified, the default value is scroll. bgcolor Sets the background color through color name or hexadecimal value. direction Sets the direction of the scrolling within the marquee. Possible values are
- behavior的預設值為scroll
- scrollamount 表示運動速度,值是正整數,預設為6,數值越大,移動速度也越快
- scrolldelay 用於設定兩次滾動操作之間的間隔時間,該時間以毫秒為單位
- <marquee bgcolor=FF0000>...</marquee> 設定背景顏色
- <marquee onmouseover="this.stop();" onmouseout="this.start();">...</marquee> 滑鼠移上去就暫停滾動