3楼 (1)、移动方向的设置direction 。取值为left(从右向左移), right(从左向右移),up(从上向下移) ,down(从下向上移)。默认移动方向为left(从右向左移)。公式:<direction=#> #=left, right ,up ,down 例如:<br/><marquee direction=left>从右向左移!</marquee> (2).移动方式的设置bihavior 。取值为scroll循环移动, slide一次移动, alternate往复移动。默认移动方式为scroll循环移动。公式:<bihavior=#> #=scroll, slide, alternate 例如:<br/>• <marquee behavior=scroll>一圈一圈绕着走!</marquee> <br/>• <marquee behavior=slide>只走一次就歇了!</marquee> <br/>• <marquee behavior=alternate>来回走</marquee> (3).移动循环的设置loop 。取值为自然数(1、2、3……),若未指定则默认循环不止(infinite)。公式:<loop=#> #=次数。 例如:<br/>•<marquee loop=3 width=50% behavior=scroll>只走 3 趟</marquee> <br/>•<marquee loop=3 width=50% behavior=slide>只走 3 趟</marquee><br/> •<marquee loop=3 width=50% behavior=alternate>只走 3 趟!</marquee> (4)、移动速度的设置scrollamount 。取值为自然数(1、2、3……),若没有设置默认值为8。公式:<scrollamount=#>#=1、2、3…… 例如:<br/><marquee scrollamount=20>啦啦啦,我走得好快哟!</marquee> (5)、移动延时的设置scrolldelay 。公式:<scrolldelay=#> 例如:<br/><marquee scrolldelay=500 scrollamount=100>啦啦啦,我走一步,停一停!</marquee> (6)、移动条底色的设置bgcolor 。取值为Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime, Fuchsia, White, Green, urple, Silver, Yellow, Aqua;或者是16 进制数码rrggbb(RGB色码)。公式: <bgcolor=#> #=rrggbb 或者是上列预定义色彩名称。 例如:<br/><marquee bgcolor=aaaaee>颜色!</marquee> (7)、移动条面积的设置height高度、width宽度。它们的取值可以是绝对数,也可以是相对数(%)。公式:<height=# width=#> 例如:<br/><marquee height=40 width=50% bgcolor=aaeeaa>面积!</marquee><br> (8)、图片与文字的对齐方式(Align)。在图片与文字一起移动时,让文字与图片对齐,采用Align属性设置,其取值为top居上, middle居中, bottom居下。公式: <align=#> #=top, middle, bottom height=100 例如:<br/>• <marquee bgcolor=aaeeaa align=bottom><font size=6>啦啦啦,我会移动耶!</marquee> <br/>• <marquee bgcolor=aaeeaa height=100 ><img src=http://lhedu./school/lhedu2/UploadThumbs/2004514234819794.gif align= top>啦啦啦,我会移动耶!</marquee> |