ENDSYNC Attribute | endSync参数属性 | DHTML中文手册 |
Sets or retrieves the synchronization rule that specifies which child element is used to determine when the time container will end.
dhtml语法
HTML <ELEMENT ENDSYNC = sRule... > Scripting object.endSync [ = sRule ]
DHTML可能的值
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.
DHTML代码范例
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 property is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 .
Applies To
t:PAR, t:EXCL
更多语法参考
Introduction to HTML+TIME