JavaScript Reference/Event Handlers Reference/onBounce
Содержание
"onBounce" Example
<source lang="javascript">
<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>
</source>
"onBounce" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<marquee> | +----------------+--------------------------------------------------------------+
</source>
"onBounce" Properties
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |clientX clientY | | |ctrlLeft offsetX | | |offsetY returnValue | | |screenX screenY | | |shiftLeft srcElement | | |type x | | |y | +----------------+--------------------------------------------------------------+
</source>
"onBounce" Syntax and Note
<source lang="javascript">
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.
</source>