JavaScript Reference/Event Handlers Reference/onBounce — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
Содержание
"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.