EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

bounce | onbounce event

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)

 

Event information

SynchronousNo
BubblesNo
CancelableYes

 

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

There are no standards that apply here.

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:

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

 

 

Afficher:
© 2014 Microsoft