HBCMS更多的中文手册参考:

onend Event

DHTML中文手册

Fires when the timeline stops on an element.

dhtml语法

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

Event Information

BubblesNo
CancelsNo
To invoke Set the element's end time. The value of the element's end time, which can depend on other elements, determines when the event actually fires.
Default action Calls the associated event handler.

Available Properties

Available Properties

remarks

this event also fires for the element when the endelement method is invoked on it, or in response to other dependencies created by the end attribute. if the element timeline has a repeatcount greater than one, this event fires only once after all repetitions are complete. the timing of this event is not affected by the fill attribute. if the fill attribute is set to freeze or hold for the element, this event fires when the parent element's timeline completes.

DHTML代码范例

This example causes the onend event to fire when the timeline ends.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>onend 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 onend="alert('Normal Completion!');">
<DIV ID="div1" CLASS="time" BEGIN="0" DUR="3">First line of text.</DIV>
<DIV ID="div2" CLASS="time" BEGIN="2" DUR="3">Second line of text.</DIV>
<DIV ID="div3" CLASS="time" BEGIN="4" DUR="3">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

更多语法参考

onbegin, Introduction to HTML+TIME