asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > BEHAVIOR Attribute

BEHAVIOR Attribute | behavior Property


Sets or retrieves how the text scrolls in a MARQUEE.

Syntax

Inline <MARQUEE behavior = 'scroll' | 'alternate' | 'slide'...>
Script marquee.behavior = sScroll ]

Possible Values

scroll The marquee scrolls in the direction specified by the direction property. The text scrolls off the end and starts over.
alternate The marquee's scroll direction reverses when its content reaches the edge of the container.
slide The marquee scrolls in the direction specified by the direction attribute. The text scrolls to the end and stops.

The property is read/write with a default value of scroll. The proposed cascading stylesheet ( CSS ) extension attribute is not inherited.

Example

The sample below flies a piece of text down the page using a MARQUEE object.

<marquee loop=1 style="position:absolute;
 top:80; left:40" scrollamount=10 scrolldelay=30 
 behavior="slide" direction="down">
<ul style="font:bold 15pt bookman,times,serif;
 color:lime">
  <li>
  <li>Use Dynamic HTML to differentiate your content 
    and create compelling Web sites</li>
</ul>
</marquee>

 Show me 

Applies To

HTMLAREA, MARQUEE

See Also

direction, How to Fly Text



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note