behavior attribute | behavior property (Internet Explorer)

Switch View :
ScriptFree
behavior attribute | behavior property

[This documentation is preliminary and is subject to change.]

Sets or retrieves how the text scrolls in the marquee.

Syntax

HTML<element behavior="p" ... >
JavaScript

p = object.behavior

Property values

Type: String

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.

Examples

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

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/howto/flyingText2Ex.htm


<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>

See also

marquee
How to Fly Text in DHTML

 

 

Build date: 3/8/2012