Attribute of <MARQUEE> Tag
Attribute of <MARQUEE> Tag
ALIGN
Specifies the alignment of text outside the marquee.
Example:<MARQUEE WIDTH=200 HEIGHT=50
ALIGN=LEFT DIRECTION=LEFT>
Welcome to CS-Tutorial.com !!!! </MARQUEE>
Possible Values
LEFT, CENTER, RIGHT, TOP, BOTTOM
BEHAVIOR
Indicates the type of scrolling.
Example:<MARQUEE DIRECTION=LEFT
BEHAVIOR=ALTERNATE>
Welcome to CS-Tutorial.com!!!
</MARQUEE>
Possible Values
SLIDE, SCROLL, ALTERNATE
BGCOLOR
Specifies the background color of the marquee. Use a hexadecimal RGB color value or a color name.
Example:<MARQUEE BGCOLOR="red" DIRECTION=LEFT>
Welcome to CS-Tutorial.com!!!
</MARQUEE>
Possible Values
Color Name or Hexadecimal color code.
DATAFLD
Selects a column from a block of tabular data.
Example:<MARQUEE DATASRC="#data_table"
DATAFLD="srnum">
Possible Values
Field Name.
DATAFORMATAS
Specifies how items selected from tabular data format within the document.
Example:<MARQUEE DATASRC="#data_table"
DATAFLD="nitems" DATAFORMATAS=HTML>
Possible Values
Format type.
DATASRC
Specifies the location of tabular data to be bound within the document.
Example:<MARQUEE DATASRC="#data_table"
DATAFLD="nitems">
Possible Values
Data Source name.
DIRECTION
Indicates the direction in which the marquee text scrolls.
Example:<MARQUEE DIRECTION=LEFT>
Welcome to Cs-tutorial.com!!!
</MARQUEE>
Possible Values
LEFT, RIGHT
HEIGHT
Specifies the vertical dimension of the marquee (in pixels).
Example:<MARQUEE WIDTH=300 HEIGHT=50>
Welcome to CS-Tutorial.com!!
</MARQUEE>
Possible Values
Value in Pixel.
HSPACE
Specifies the size of the margins (in pixels) to the left and right of the marquee.
Example:<MARQUEE DIRECTION=LEFT HSPACE=25>
Welcome to Cs-tutorial.com!!!
</MARQUEE>
Possible Values
Value in Pixel.
ID
Assigns a unique ID selector to an instance of the <MARQUEE> tag. When you then assign a style to that ID selector, it affects only that one instance of the <MARQUEE> tag.
Example:<MARQUEE ID="dkm">
Possible Values
Any ID Name.
LOOP
Controls the appearance of the marquee text.
Example:<MARQUEE LOOP=5>
Welcome to Cs-tutorial.com!!!
</MARQUEE>
Possible Values
Any Integer or INFINITE
SCROLLAMOUNT
Indicates how far (in pixels) the marquee text shifts between redraws. Decrease this value for a smoother (but slower) scroll; increase it for a faster (but bumpier) scroll.
Example:<MARQUEE SCROLLAMOUNT=10
SCROLLDELAY=40>Welcome to Cs-tutorial.com!!!
</MARQUEE>
Possible Values
Any Integer .
SCROLLDELAY
Indicates how often (in milliseconds) the marquee text redraws. Increase this value to slow the scrolling action; decrease it to speed the scrolling action.
Example:<MARQUEE DIRECTION=RIGHT
SCROLLDELAY=30>Welcome to Cs-tutorial.com!</MARQUEE>
Possible Values
Value in Millisecond.
STYLE
Specifies Style Sheet commands that apply to the text within the <MARQUEE> tags.
Example:<MARQUEE STYLE="background: red">
Welcome to Cs-tutorial.com!!!
</MARQUEE>
Possible Values
CSS Property with Value.
TITLE
Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the marquee.
Example:<MARQUEE TITLE="Scrolling Marquee">
Welcome to Cs-tutorial.com!!!
</MARQUEE>
Possible Values
Any Text Message.
VSPACE
Specifies the size of the margins (in pixels) at the top and bottom of the marquee.
Example:<MARQUEE DIRECTION=LEFT VSPACE=25>
Welcome to Cs-tutorial.com!</MARQUEE>
Possible Values
Value in Pixel.
WIDTH
Specifies the horizontal dimension (in pixels) of the marquee.
Example:<MARQUEE WIDTH=300>
Welcome to Cs-tutorial.com!</MARQUEE>
Possible Values
Value in Pixel.