ENDEVENT Attribute | endEvent Property

MS Office DHTML, HTML & CSS

ENDEVENT Attribute | endEvent Property


This document describes technologies available as an experimental implementation of HTML+TIME within Internet Explorer 5. While we encourage you to evaluate these features and to send us your feedbackInternet Link, please note that these features are subject to change.

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.

Syntax

HTML <ELEMENT STYLE="behavior:url(#default#time);" t:ENDEVENT = sEventName... >
Scripting object.endEvent [ = sEventName ]

Possible Values

sEventName String that specifies a timing event or an event supported by the DHTML Object Model. Valid values use the format object.EventName, or the string "none". Examples of event names include span1.onBegin and document.onLoad.

The property is read/write with no default value. This property cannot be modified in script after the onload event fires on the document body.

Remarks

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 DUR or 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.

Example

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

Sample Code

<!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 Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
animation, audio, img, media, par, seq, time, video

See Also

html+timeInternet Link, ENDHOLD

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.