MARQUEE

Description

It is used to create a scrolling text marquee.

Syntax

<MARQUEE
BEHAVIOR=ALTERNATE | SCROLL | SLIDE
BGCOLOR=color
CLASS=classname
DATAFLD=colname
DATAFORMATAS=HTML | TEXT
DATASRC=#ID
DIRECTION=DOWN | LEFT | RIGHT | UP
HEIGHT=
n
HSPACE=n
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
LOOP=n
SCROLLAMOUNT=n
SCROLLDELAY=milliseconds
STYLE=css1-properties
TITLE=text
TRUESPEED
VSPACE=n
WIDTH=n
event = script
>

Parameter

Description

BEHAVIOR

How the text scrolls in the marquee.

BGCOLOR

Background color behind the element. For a complete list of colors, see the Internet Explorer color table.

CLASS

Class of the tag being defined. This is used to associate a subclassed style sheet with the tag.

DATAFLD

Column name from the data source object that supplies the bound data.

DATAFORMATAS

Indicates whether bound data is plain text or HTML.

DATASRC

ID of the data source object that supplies the data that is bound to this element.

DIRECTION

Which direction the text should scroll.

HEIGHT

HEIGHT of the MARQUEE in pixels or as a percentage of the screen height.

HSPACE

Along with VSPACE, specifies margins for the element.

ID

SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underscore character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.

LANG

Specifies which language to use in ISO standard language abbreviation form.

LANGUAGE

Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT. JAVASCRIPT, JSCRIPT-- The script is written in JScript.
VBS, VBSCRIPT --The script is written in VBScript.

LOOP

Number of times the marquee text will loop.

SCROLLAMOUNT

Number of pixels the text scrolls between each subsequent drawing of the MARQUEE.

SCROLLDELAY

Speed the MARQUEE scrolls in milliseconds.

STYLE

Inline style sheet for the tag.

TITLE

Used to provide advisory information.

TRUESPEED

When present, this attribute indicates that the exact scroll delay value specified is used to move the marquee text. Without this attribute, all scroll delay values of 59 or less are rounded to 60 milliseconds.

VSPACE

Along with HSPACE, specifies margins for the element in pixels.

WIDTH

Returns the calculated width of the marquee in window coordinates. In HTML, this attribute may be initially set in pixels or percentages.

event

Can be one or more of these events: onafterupdate
onblur
onbounce
onclick
ondblclick
ondragstart
onfinish
onfocus
onhelp
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onresize
onrowenter
onrowexit
onselectstart
onstart

Version

Supported by Internet Explorer 4.0 or above version.

Example

<MARQUEE>It is easy to let the text scrolling.</MARQUEE>

would render as:

It is easy to let the text scrolling.

Remarks

Both the start and end tags are required.