<marquee direction=up behavior=scroll loop=3 scrollamount=1 scrolldelay=10 align=top bgcolor=#ffffff height=600 width=30% hspace=20 vspace=10 onmouseover=this.stop() onmouseout=this.start()> 此处输入滚动内容 </marquee>
1 V; B" \: C8 X7 c◎ direction表示滚动的方向,du值可以是zhileft,right,up,down,默认为left
. ~8 H3 m1 }6 z- w6 G2 D◎ behavior表示滚动的方式,值可以是scroll(连续滚动)slide(滑动一次)alternate(往返滚动)/ f1 }/ {% _3 ~+ ~3 h% |5 P) V
◎ loop表示循环的次数,值是正整数,默认为无限循环
* o1 ~) h( o P0 h( Q◎ scrollamount表示运动速度,值是正整数,默认为68 Q3 L% g: a, S# M2 ?3 y
◎ scrolldelay表示停顿时间,值是正整数,默认为0,单位似乎是毫秒
2 {/ N2 f" P# l/ V2 Z& j6 V◎ align表示元素的垂直对齐方式,值可以是top,middle,bottom,默认为middle
8 M4 l; ~# e, v: w& _% c7 l◎ bgcolor表示运动区域的背景色,值是16进制的RGB颜色,默认为白色% ~# ?. s; ^ t% k' \6 T! M+ ~
◎ height、width表示运动区域的高度和宽度,值是正整数(单位是像素)或百分数,默认width=100% height为标签内元素的高度7 f" m6 t3 G C
◎ hspace、vspace表示元素到区域边界的水平距离和垂直距离,值是正整数,单位是像素。
. t/ N4 l4 H0 B◎ onmouseover=this.stop() onmouseout=this.start()表示当鼠标以上区域的时候滚动停止,当鼠标移开的时候又继续滚动。
5 N6 a9 ~# Z& n: Q& u
3 c/ R) g" ^1 B/ _) |" x$ z |