HBCMS更多的中文手册参考:

onreverse Event

DHTML中文手册

Fires when the timeline on an element begins to play backward.

dhtml语法

Inline HTML<ELEMENT onreverse = "handler" ... > All platforms
Event propertyobject.onreverse = handlerJScript only
object.onreverse = GetRef("handler")Visual Basic Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = object EVENT = onreverse> Internet Explorer only

Event Information

BubblesNo
CancelsNo
To invoke Set the autoreverse attribute on the element to true.
Default action Calls the associated event handler.

Available Properties

Available Properties

remarks

if the element has a repeatcount greater than one, this event fires every time the timeline begins to play backward.

DHTML代码范例

This example causes the onreverse event to fire when the timeline is set to play backward.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>onreverse Event</TITLE>
<STYLE>
.time { behavior: url(#default#time2) }
</STYLE>
<?IMPORT namespace="t" implementation="#default#time2">
</HEAD>
<BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="fixed" BGCOLOR="#FFFFFF"
LINK="#000000" VLINK="#808080" ALINK="#000000">
<t:excl AUTOREVERSE="true" DUR="6" repeatCount="indefinite"
onreverse="alert('Reversing');">
<DIV ID="div1" CLASS="time" BEGIN="0" DUR="2">First line of text.</DIV>
<DIV ID="div2" CLASS="time" BEGIN="2" DUR="2">Second line of text.</DIV>
<DIV ID="div3" CLASS="time" BEGIN="4" DUR="2">Third line of text.</DIV>
</t:excl>
</BODY>
</HTML>
This feature requires Microsoft?Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

This event is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) Non-Microsoft link.

Applies To

t:TRANSITIONFILTER, t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION, t:ANIMATION, t:AUDIO, t:EXCL, t:IMG, t:MEDIA, t:PAR, t:REF, t:SEQ, t:SET, time2, t:VIDEO

更多语法参考

Introduction to HTML+TIME