onBounce (Event handler)

Triggered when a marquee element hits the edge of its element area.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Boolean primitive
JavaScript syntax:IEmyObject.onbounce = aHandler
HTML syntax:<HTMLTag onBounce="...">
Argument list:aHandlerA reference to a function object to handle the event
Supported by objects:MARQUEE

You may want to change the MARQUEE content or do some wizzy animation effect when the bounce occurs.

Now that we can do pretty much the same things with dynamic HTML and style-driven positioning, this could become deprecated.

Its still quite useful though, because it knows how big the marquee content is and it triggers the bounces automatically. That's possible with CSS scripting but its not completely trivial because you need to measure the extent rectangle of an object, which could involve some very messy font metric calculations.

See also:Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onStart, onStop, Semantic event