Sets or retrieves the synchronization rule that specifies which child element is used to determine when the time container will end.
Syntax
HTML | <ELEMENT ENDSYNC
= sRule... >
|
---|
Scripting | object.endSync [ = sRule ] |
---|
Possible Values
sRule | String that
specifies or receives one of the following values.all | Time container ends when all of the child elements have ended their respective active durations. Elements with indefinite or unresolved begin times will keep the simple duration of the time container from ending. When all elements have completed the active duration one or more times, the parent time container can end. | first | Time container ends the first time one of its child elements ends. This child element does not have to be the first to start in the time container, nor the first child in lexical order. | id | Time container ends with the specified child. The id must correspond to one of the immediate children of the time container. | last | Default. Time container ends when the last of all its child elements ends. This child element does not have to be the last to start in the time container, nor the last child in lexical order. | none | The time container ignores the children's duration and uses the time container's duration. For example, you can set a dur or end value on the time container itself rather than rely on the duration of the child elements. This value is a Microsoft?extension to the Synchronized Multimedia Integration Language (SMIL) 2.0 specification. |
|
The property is read/write.
The property has a default value of
last.
Example
This example uses the ENDSYNC attribute to show how to end a time container once the second child element ends.
<HTML XMLNS:t ="urn:schemas-microsoft-com:time">
<HEAD>
<STYLE>
.time {behavior: url(#default#time2);}
</STYLE>
<?IMPORT namespace="t" implementation="#default#time2">
</HEAD>
<BODY>
<t:excl ID="parent" endsync="div2">
<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.

Standards Information
This property is defined in
Synchronized Multimedia Integration Language (SMIL) 2.0
.
Applies To
See Also
Introduction to HTML+TIME