JavaScript Reference/Event Handlers Reference/onBounce
Содержание
"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.