Properties


BEHAVIOR Attribute | behavior Property

Sets or retrieves how the text scrolls in the marquee.

Syntax

HTML<ELEMENT BEHAVIOR = sScroll... >
Scripting[ sScroll = ] object.behavior

Possible Values

sScrollString that specifies or receives one of the following values.
scroll
Default. Marquee scrolls in the direction specified by the direction property. The text scrolls off the end and starts over.
alternate
Marquee scroll direction reverses when its content reaches the edge of the container.
slide
Marquee scrolls in the direction specified by the direction property. The text scrolls to the end and stops.

The property is read/write. The property has a default value of scroll.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.

Example

This example moves a piece of text down the page using a marquee object.

<MARQUEE loop=1 height=200  width=740
         style="position:absolute; top:0; left:10" 
         SCROLLAMOUNT=10 SCROLLDELAY=20 BEHAVIOR="SLIDE" DIRECTION="DOWN">
<UL>Use Dynamic HTML to differentiate your content and create 
  compelling Web sites
</UL>
</MARQUEE>
This feature requires Microsoft Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

MARQUEE, HTMLMarqueeElement Constructor

See Also

How to Fly Text in DHTML
Tags :


Page view tracker