HTML CSS Reference/HTML Attributes Reference/behavior

Материал из Web эксперт
Перейти к: навигация, поиск

"behavior" Example

    
<HTML>
<head><Title>Example For behavior</Title></head>
<BODY>
<marquee behavior="slide" bgcolor="#99ffff">Animation.</marquee>
</BODY>
</HTML>



behavior is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<marquee>                                                     |
+----------------+--------------------------------------------------------------+



behavior Possible Values

Possible Values
alternate The content moves back and forth between the borders.
scroll    The content loops through. This is the default value. 
slide     The content moves to the end and stops.



"behavior" Syntax and Note

Note:
    
This attribute specifies how content will scroll in the <marquee> element.
    
Syntax:
    
<marquee behavior="value"> . . . </marquee>