HBCMS更多的中文手册参考:

t:ENDEVENT Attribute | endEvent Property?deprecated)

DHTML中文手册

This page documents a feature of HTML+TIME 1.0, which was released in Microsoft?Internet Explorer 5. We recommend that you migrate your content to the latest version of HTML+TIME, which implements the SMIL 2.0 Working Draft. See the introduction to html+time overview for more information.

sets or retrieves a value indicating that the timeline of an element ends immediately when the referenced event occurs, regardless of the element's repeat count or repeatdur property.

dhtml语法

xml<ELEMENT t:ENDEVENT = sEventName... >
Scriptingobject.endEvent [ = sEventName ]

DHTML可能的值

sEventNameString that specifies or receives one of the following values:
noneDefault. Value that specifies the element's timeline is not stopped when a particular event occurs.
eventStringthat specifies a timing event or an event supported by the Dynamic HTML(动态HTML,即DHTML) Object Model.

The property is read/write. The property has a default value of none.

Remarks

This property is deprecated.

This property supports interactive timing, where element timelines can end in response to events from users, media players, or the presentation. If the referenced event does not occur, the timeline on the current element does not start. To override this behavior, you can specify a maximum duration for the timeline using either the t:dur or t:end attribute on the same element. this behavior is sometimes referred to as "lazy interactive."

the prefix t is used to associate this attribute with an xml namespace.

DHTML代码范例

This example uses the t:ENDEVENT attribute to make a paragraph disappear when the user clicks the button.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<STYLE>
.time    { behavior: url(#default#time);}
</STYLE>
</HEAD>
<BODY BGCOLOR="white">
<BUTTON ID="button1">Hide Paragraph</BUTTON><BR><BR>
<SPAN ID="span1" CLASS=time STYLE="COLOR:Red;"
t:ENDEVENT="button1.onclick" t:TIMEACTION="display">
<H3>Paragraph 1</H3>
<P>This is paragraph number one. It disappears when the button
is clicked.</P>
</SPAN>
</BODY>
</HTML>
This feature requires Microsoft?Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

This property is defined in HTML+TIME (Timed Interactive Multimedia Extensions) 1.0 Non-Microsoft link.

Applies To

t:AUDIO, t:IMG, t:MEDIA, t:PAR, t:SEQ, time, t:VIDEO

更多语法参考

introduction to html+time, t:ENDHOLD