HTML element: <marquee>
Availability
|
BlackBerry®
Device Software 4.6 or later
|
The <marquee> element enables you to scroll text across the browser window.
This element supports scrolling of text only. The BlackBerry® Browser ignores any unsupported elements, such as <img> elements, that are nested within the <marquee> element.
Attributes
Attribute
|
Value
|
Description
|
Availability
|
align
|
left
center
right
|
This attribute specifies the horizontal alignment of the marquee element within the containing element.
|
4.6 or later
|
behavior
|
alternate
scroll
slide
|
This attribute specifies the scrolling behavior of the marquee text. you can specify one of the following values:
- alternate: The text scrolls left and right within the
block box. At the completion of a loop, the text is aligned either left or right, depending on the value that you specify for the direction attribute.
- scroll: The text scrolls across the block box and exits on the opposite side of the box. At the completion of a loop, no text is visible on the screen.
- slide: The text scrolls across the block box and stops when the first character reaches the opposite side of the block box. At the completion of a loop, the text is aligned either left or right,
depending on the value that you specify for direction attribute.
|
4.6 or later
|
bgcolor
|
color
|
This attribute specifies the background color for the marquee block box.
|
4.6 or later
|
direction
|
left
right
|
This attribute specifies the scrolling direction of the text.
If behavior="alternate", the text scrolls left and right, and direction specifies the starting direction.
If you do not specify a value for direction, then the BlackBerry Browser determines direction based on the default language of the BlackBerry device.
|
4.6 or later
|
height
|
length
|
This attribute specifies the height of the marquee block box.
You can specify this value as either an absolute number of pixels (do not include units), or as a percentage of the width of the containing element.
|
4.6 or later
|
hspace
|
length
|
This attribute specifies the horizontal space, in pixels, for the margin to the left and right of the marquee block box.
|
4.6 or later
|
loop
|
number
infinite
|
This attribute specifies the number of times the scrolling behavior repeats. This value is any non-negative integer.
If you specify a value of infinite, the text scrolls continually.
If you do not specify this attribute, the BlackBerry Browser scrolls the text only once.
|
4.6 or later
|
scrollamount
|
length
|
This attribute specifies the distance, in pixels, that the text moves each time the browser redraws the text. A smaller value results in a smoother-looking animation of the marquee text.
|
4.6 or later
|
scrolldelay
|
time
|
This attribute specifies the interval, in milliseconds, in which the browser redraws the text. A smaller value results in a smoother-looking animation of the marquee text.
|
4.6 or later
|
vspace
|
length
|
This attribute specifies the vertical space, in pixels, for the margin above and below the marquee block box.
|
4.6 or later
|
width
|
length
|
This attribute specifies the width of the marquee block box.
You can specify this value as either an absolute number of pixels (do not include units), or as a percentage of the width of the containing element.
|
4.6 or later
|
Index
Was this information helpful? Send us your comments.