BEHAVIOR Attribute | behavior Property

DHTML, HTML, & CSS

BEHAVIOR Attribute | behavior Property


Sets or retrieves how the text scrolls in the marquee.

Syntax

HTML<MARQUEE BEHAVIOR = sScroll ... >
Scriptingmarquee.behavior [ = sScroll ]

Possible Values

sScroll String that specifies one of the following values:
scrollMarquee scrolls in the direction specified by the direction property. The text scrolls off the end and starts over.
alternateMarquee's scroll direction reverses when its content reaches the edge of the container.
slideMarquee scrolls in the direction specified by the direction property. The text scrolls to the end and stops.

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

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see dynamic propertiesInternet Link.

Example

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

Sample Code

<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 Internet Explorer 4.0 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
MARQUEE

See Also

how to fly textInternet Link


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.