t:BEGINEVENT Attribute | beginEvent Property?deprecated) | DHTML中文手册 |
sets or retrieves a value that starts the timeline of an element when the referenced event occurs.
dhtml语法
xml <ELEMENT t:BEGINEVENT = sEventName... > Scripting object.beginEvent [ = sEventName ]
DHTML可能的值
sEventName String that specifies or receives one of the following values:
event Stringthat specifies a timing event or an event supported by the dynamic html(动态html,即dhtml) object model. none Default. Value that specifies the element's timeline is not started when a particular event occurs. The property is read/write. The property has a default value of none.
Remarks
This property is deprecated. For similar functionality, refer to the begin property available with the time2 behavior.
this property supports interactive timing, where element timelines can begin in response to events from users, media players, or the presentation. 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 a specified amount of time after the referenced event occurs. if the referenced event doesn't occur, the timeline on the current element does not start. this property cannot be used on the same element as the t:beginafter or t:beginwith attribute.
to start the timeline on the current element, you can specify more than one event setting the t:beginevent attribute to a string containing a list of semicolon-separated events. for example, you would use the following code to cause the timeline to begin on the heading when either button is pressed:
<button id="btn1">Button #1</BUTTON> <BUTTON ID="btn2">Button #2</BUTTON> . . . <H1 CLASS="time" t:BEGINEVENT="btn1.onclick;btn2.onclick" t:DUR="5"> My Heading </H1>The t: prefix is used to associate this attribute with an XML namespace.
是否符合公共标准
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
更多语法参考
t:begin, t:beginafter, t:beginwith, Introduction to HTML+TIME