t:BEGINWITH Attribute | beginWith Property?deprecated) | DHTML中文手册 |
sets or retrieves a value that starts an element's timeline at the same time as the referenced element.
dhtml语法
xml <ELEMENT t:BEGINWITH = sID... > Scripting object.beginWith [ = sID ]
DHTML可能的值
sID Stringthat specifies the unique identifier of another element within the current time scope. The timeline on the current element starts when this referenced element starts. For more information about time scope, see the Remarks section. The property is read/write. The property has no default value.
Remarks
This property is deprecated. For similar functionality, refer to the begin property available with the time2 behavior.
this property supports relative timing between elements. you can offset the start time by specifying a nonzero value for the t:begin attribute on the element. this indicates that the timeline should start at a specified amount of time after the referenced element starts. this property cannot be used on the same element as the t:beginafter or t:beginevent property.
the current time scope is defined by the closest parent time container created with the t:timeline attribute or the t:par or t:seq element. all timed elements within the same parent time container (time siblings) share the current time scope. if no time containers are explicitly declared, the document root is defined as the parent time container. in this case, all timed elements in the document would share the current time scope. if you need to create begin dependencies between elements in different time scopes, use the t:beginevent attribute instead.
the t: prefix is used to associate this attribute with an xml namespace.
DHTML代码范例
This example uses the t:BEGINWITH and t:BEGIN attributes to make a paragraph appear two seconds after the first one appears.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> <HTML> <HEAD> <STYLE> .time { behavior: url(#default#time);} </STYLE> </HEAD> <BODY BGCOLOR="white"> <SPAN ID="span1" CLASS=time STYLE="COLOR:Red;" t:BEGIN="2" t:DUR="5" t:TIMEACTION="visibility"> <H3>Paragraph 1</H3> <P>This is paragraph number one. It appears two seconds after the page loads, and displays for five seconds.</P> </SPAN> <SPAN ID="span2" CLASS=time STYLE="COLOR:Blue;" t:BEGINWITH="span1" t:BEGIN="2" t:TIMEACTION="display"> <H3>Paragraph 2</H3> <P>This is paragraph number two. It appears two seconds after the first paragraph appears, and displays indefinitely.</P> </SPAN> </BODY> </HTML>
是否符合公共标准
This property is defined in HTML+TIME (Timed Interactive Multimedia Extensions) 1.0 .
Applies To
t:AUDIO, t:IMG, t:MEDIA, t:PAR, t:SEQ, time, t:VIDEO
更多语法参考
Introduction to HTML+TIME