Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft