Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
behavior

behavior attribute | behavior property

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

 

 

Show:
© 2015 Microsoft