onbounce event (Internet Explorer)

Switch View :
ScriptFree
onbounce event

[This documentation is preliminary and is subject to change.]

Fires when the behavior property of the marquee object is set to "alternate" and the contents of the marquee reach one side of the window.

Syntax

HTML Attribute <element onbounce = "handler(event)">
Event Property object.onbounce = handler;
attachEvent Method object.attachEvent("onbounce", handler)

Standards information

There are no standards that apply here.

Event information

SynchronousNo
BubblesNo
CancelableNo

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Remarks

The marquee contents begin to scroll in the opposite direction.

To invoke this event, do one of the following:

  • Cause the marquee contents to loop.

The pEvtObj parameter is required for the following interfaces:

  • HTMLAnchorEvents2
  • HTMLAreaEvents2
  • HTMLButtonElementEvents2
  • HTMLControlElementEvents2
  • HTMLDocumentEvents2
  • HTMLElementEvents2
  • HTMLFormElementEvents2
  • HTMLImgEvents2
  • HTMLFrameSiteEvents2
  • HTMLInputFileElementEvents2
  • HTMLInputImageEvents2
  • HTMLInputTextElementEvents2
  • HTMLLabelEvents2
  • HTMLLinkElementEvents2
  • HTMLMapEvents2
  • HTMLMarqueeElementEvents2
  • HTMLObjectElementEvents2
  • HTMLOptionButtonElementEvents2
  • HTMLScriptEvents2
  • HTMLSelectElementEvents2
  • HTMLStyleElementEvents2
  • HTMLTableEvents2
  • HTMLTextContainerEvents2
  • HTMLWindowEvents2

Examples

This example shows how to display an alert each time the onbounce event occurs.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/onbounceEX.htm


<BODY>
<MARQUEE ID=mqBounce BEHAVIOR=alternate
    onbounce="alert('onbounce fired')" LOOP=3 
		WIDTH=200>Marquee text
</MARQUEE>
</BODY>

See also

marquee
behavior

 

 

Build date: 3/14/2012