Export (0) Print
Expand All
7 out of 13 rated this helpful - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.