This article transferred from: http://www.360doc.com/content/12/0818/16/8351655_230872993.shtml
Marquee syntax
<marquee></marquee>
Instance One
<marquee>hello, world</marquee>
Two events commonly used by marquee:
Onmouseout= "This.start ()" When the mouse moves out of the area
Onmouseover= "This.stop ()" When the mouse is moved into the area
Example Two
<marquee onmouseout= "This.start ()" onmouseover= "This.stop ()" >marquee two events commonly used </marquee>
Let's start by talking about the properties supported by marquee
Behavior Set the way to scroll:
Alternate: Scroll back and forth.
Scroll: Repeat scrolling.
Slide: Do not repeat scrolling.
The code is as follows:
<marquee behavior= "Alternate" > scroll back and forth. </marquee>
<marquee Beha vior= "Scroll" > Repeat scrolling. </marquee>
<marquee Beha vior= "Slide" > Do not repeat scrolling. </marquee>
bgcolor sets the background color of the active caption.
The code is as follows:
<marquee bgcolor= "#006699" > Set the background color of active subtitles </marquee>
<marquee bgcolor= "RGB (10%,50%,100%,)" > Set background color for active subtitles </marquee>
<marquee bgcolor= "Red" > Set the background color of active subtitles </marquee>
Direction setting the scrolling direction of active captions
The code is as follows:
<marquee direction= "Down" > Set the scrolling direction of active captions down </marquee>
<marquee direction= "Left" > Set the scrolling direction of the active caption to </marquee>
<marquee direction= "Right" > Set the scrolling direction of the active caption to the left </marquee>
<marquee direction= "Up" > Set the scrolling direction of active captions up </marquee>
Height sets the altitude of the active caption
The code is as follows:
<marquee height= "direction=" "Down" bgcolor= "#CCCCCC" > Set the height of active subtitles </marquee>
Width set the length of the active caption
The code is as follows:
<marquee width= "$" bgcolor= "#CCCCCC" > Set the width of the active caption </marquee>
Loop sets the number of scrolling times, and when loop=-1 means scrolling down, the default is-1
The code is as follows:
<marquee loop= "-1" bgcolor= "#CCCCCC" > I'm going to keep going. </marquee>
<marquee loop= "2" bgcolor= "#CCCCCC" > I only go two times Oh </marquee>
ScrollAmount set the scrolling speed of the active caption, unit pixels
The code is as follows:
<marquee scrollamount= "Ten" >scrollamount= "ten" </marquee>
<marquee scrollamount= ">scrollamount=" </marquee>
<marquee scrollamount= ">scrollamount=" </marquee>
Scrolldelay set the delay time between active caption scrolling two times, unit millisecond (MS)
When the value is large, there will be a pause in the effect.
The code is as follows:
<marquee scrolldelay= "Ten" >scrolldelay= "ten" </marquee>
<marquee scrolldelay= "> scrolldelay=" </marquee>
<marquee scrolldelay= ">scrolldelay=" </marquee>
"Go" marquee label introduction