Code Daquan of rolling subtitle marquee
Basic syntax
-------------------------------------------
<Marquee> scroll text </marquee>
Text movement attribute settings
Direction
<Direction =#>#= left, right, up, down <marquee direction = left> shift from right to left! </Marquee>
Method
<Bihavior =###= scroll, slide, alternate <marquee behavior = scroll> go around in a circle! </Marquee>
<Marquee behavior = slide> just one stop! </Marquee>
<Marquee behavior = alternate> back and forth </marquee>
Loop
<Loop =#># = number of times; if not specified, the loop is not limited to (infinite) <marquee loop = 3 width = 50% behavior = scroll> 3 </marquee> <p>
<Marquee loop = 3 width = 50% behavior = slide> only take 3 </marquee>
<Marquee loop = 3 width = 50% behavior = alternate> only 3 trips! </Marquee>
Speed
<Scrollamount = #> <marquee scrollamount = 20> La la! </Marquee>
Latency
<Scrolldelay = #> <marquee scrolldelay = 500 scrollamount = 100> La la! Let's take a step and stop it! </Marquee>
Layout settings
Align)
<Align =#>#= top, middle, bottom <font size = 6>
<Marquee align = # width = 400> La la, I will move it! </Marquee>
</Font>
Background Color
<Bgcolor = #>#= rrggbb hexadecimal digital, or the following predefined colors:
Black, Olive, teal, red, blue, maroon, navy, gray, lime,
Fuchsia, white, green, purple, silver, yellow, Aqua <marquee bgcolor = aaaaee> color! </Marquee>
Area
<Height = # width =#> <marquee Height = 40 width = 50% bgcolor = aaeeaa> area! </Marquee>
Blank
(Margins) <Marquee hspace = 20 vspace = 20 width = 150 bgcolor = ffaaaa align = middle> area! </Marquee>
Mouse response: that is, the mouse points to stop, and then leaves to continue.
Onmouseover = "this. Stop ()" onmouseout = "This. Start ()">
Example: <marquee direction = up scrollamount = 2 onmouseover = "this. stop (); "onmouseout =" this. start (); "width = 100 Height = 100> People's Republic of China <br> www. cnzz. welcome to CC China webmaster <br> I learned it, hahaha </marquee>