This marquee can be made by using the tag <marquee>...</marquee>
Attribute are often used are:
- Bgcolor = "color" -> To set the background color text
- DIRECTION = "left / right / up / down" -> Set the text direction of movement
- BEHAVIOR = "scroll / slide / alternate" -> To manage the movement behavior
- Scroll -> moving text rotates
- Slide -> move the text once and then stopped
- Alternate -> text moves from left to right and back again
- TITLE = 'message "-> message will appear when the mouse is above text
- SCROLLMOUNT = "number" -> set the speed of movement in pixels, the larger the number the faster movements.
- SCROLLDELAY = "number" -> To set the delay time in seconds
- LOOP = "number | -1 | infinite" -> Set the number of loops
- WIDTH = "width" -> Set the width of the text block in pixels or percent
Marquee example of the movement:
<MARQUEE align="center" direction="right" height="60" scrollamount="2" width="30%">
marquee from right to left
</MARQUEE>
Then it will be as this :Marquee example of the movement behavior :
<marquee align="center" direction="left" height="60" scrollamount="3" width="70%" behavior="alternate">
marquee under behavior
</marquee>
The result will be as this :Sample letters and marquee with a variation of the background color :
<div align="left"><FONT FACE="georgia" color="White"><B><MARQUEE BGCOLOR="RED" width="70%" scrollamount="3" behavior="alternate">
variation of the background color
</MARQUEE></b></FONT></div>
The result will be as this :