JavaScript Reference/Event Handlers Reference/onBounce

Материал из Web эксперт
Версия от 08:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"onBounce" Example

    
<head>
<script language="JavaScript">
    function function1() {
        alert("The marquee content reached one of its edges") 
    } 
</script>
</head>
<body>
    <marquee id="myM" 
             width=500 
             behavior="alternate" 
             onbounce="function1()" 
             bgcolor="#99ffff">www.wbex.ru</marquee>
</body>



"onBounce" is applied to

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



"onBounce" Properties

+----------------+--------------------------------------------------------------+
| Properties     |altKey                          altLeft                       |
|                |clientX                         clientY                       |
|                |ctrlLeft                        offsetX                       |
|                |offsetY                         returnValue                   |
|                |screenX                         screenY                       |
|                |shiftLeft                       srcElement                    |
|                |type                            x                             |
|                |y                                                             |
+----------------+--------------------------------------------------------------+



"onBounce" Syntax and Note

Note:
    
This event applies to the <marquee> element.
When <marquee> behavior attribute value is set to alternate. 
It fires when the content of the marquee reaches either its right or its left edge.