Partilhar via


ENDSYNC Attribute | endSync Property

This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.

Sets or gets the synchronization rule that specifies which child element is used to determine when the time container ends.

Syntax

HTML <ELEMENT ENDSYNC = sRule... >
Scripting [ sRule = ] object.endSync

Possible Values

sRule String that specifies or receives one of the following values.
all
Time container ends when all 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 the child elements ends. This child element does not have to be the first to start in the time container, and it does not have to be the first child element in lexical order.
id
Time container ends with the specified child element. 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, and it does not have to be the last child element in lexical order.
none
The time container ignores the duration of the child elements and uses the time container duration. For example, you can set a dur value or an end value on the time container itself, instead of relying on the duration of the child elements. This value is a Microsoft extension to the Synchronized Multimedia Integration Language (SMIL) 2.1 specification.

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

Example

This example uses the ENDSYNC attribute to end a time container after 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>

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/endsync.htm

Applies To

t:PAR, t:EXCL

See Also

Introduction to HTML+TIME