Post by Bradley on Nov 7, 2004 19:52:02 GMT -5
The basic marquee is:
<marquee>YOUR TEXT HERE</marquee>
You can add attributes to modify how it works. Here the direction has been changed:
<marquee direction="up">YOUR TEXT HERE</marquee>
Here we have more attributes added. They will be explained after the example.
<marquee width="400" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="3" direction="up">YOUR TEXT HERE</marquee>
Width of marquee
Stop on mouseover and start on mouseout
Scroll speed
Direction (up, down, left, right)
Here is a full list of attributes and possible values:
[/tr]
[tr]
[td]scrollamount[/td]
[td]This attribute specifies the amount of space that exists horizontally between each successive draw of Marquee text.[/td]
[td]Positive whole numbers.[/td]
[/tr]
[/tr]
[tr]
[td]scrolldelay[/td]
[td]Specifies the number of milliseconds between each successive draw of Marquee text.[/td]
[td]Values are specified in positive, whole number, millisecond amounts.[/td]
[/tr]
[/tr]
[tr]
[td]truespeed[/td]
[td]This stand alone indicates that exact SCROLLDELAY values should be honored. If this attribute is not present, all SCROLLDELAY values less than 59 are rounded to 60 milliseconds.[/td]
[td]truespeed[/td]
[/tr]
[/tr]
[tr]
[td]width[/td]
[td]Specifies the width of the Marquee box. Default value is the width of the screen.[/td]
[td]Positive whole numbers values representing the pixel width of the marquee box or a percentage of the parent element's width.[/td]
[/tr]
[/tr]
[/table]
<marquee>YOUR TEXT HERE</marquee>
You can add attributes to modify how it works. Here the direction has been changed:
<marquee direction="up">YOUR TEXT HERE</marquee>
Here we have more attributes added. They will be explained after the example.
<marquee width="400" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="3" direction="up">YOUR TEXT HERE</marquee>
Width of marquee
Stop on mouseover and start on mouseout
Scroll speed
Direction (up, down, left, right)
Here is a full list of attributes and possible values:
Attribute Name | Effect | Values |
behavior | Specifies how the Marquee text should move. |
|
bgcolor | Indicates a background color to be used for the Marquee text box. | Any valid HTML color. |
direction | Specifies the direction the Marquee text should scroll. |
|
height | Specifies the height of the Marquee box. Default value is the height of the contained text. | Positive integer values representing the pixel height of the marquee box or a percentage of the screen height. |
loop | Specifies how many times the Marquee display will cycle. |
|
[tr]
[td]scrollamount[/td]
[td]This attribute specifies the amount of space that exists horizontally between each successive draw of Marquee text.[/td]
[td]Positive whole numbers.[/td]
[/tr]
[/tr]
[tr]
[td]scrolldelay[/td]
[td]Specifies the number of milliseconds between each successive draw of Marquee text.[/td]
[td]Values are specified in positive, whole number, millisecond amounts.[/td]
[/tr]
[/tr]
[tr]
[td]truespeed[/td]
[td]This stand alone indicates that exact SCROLLDELAY values should be honored. If this attribute is not present, all SCROLLDELAY values less than 59 are rounded to 60 milliseconds.[/td]
[td]truespeed[/td]
[/tr]
[/tr]
[tr]
[td]width[/td]
[td]Specifies the width of the Marquee box. Default value is the width of the screen.[/td]
[td]Positive whole numbers values representing the pixel width of the marquee box or a percentage of the parent element's width.[/td]
[/tr]
[/tr]
[/table]