TIMECONTAINER Attribute | timeContainer参数属性 | DHTML中文手册 |
Sets or retrieves the type of timeline associated with an element.
dhtml语法
HTML <ELEMENT TIMECONTAINER = sType... > Scripting [ sType = ] object.timeContainer
DHTML可能的值
sType Stringthat specifies one of the following values:
excl Exclusive timeline container element in a document. Only one HTML descendant of this element can play at a time. none Default. Current element does not define a local timeline and has no affect on its contained time descendants. par New timeline container element in a document. All HTML descendants of this element have independent, or parallel, timing. seq Sequence timeline container element in a document. When the timeline of an element in the sequence ends, the next element begins playing. The property is read-only. The property has a default value of none.
DHTML代码范例
This example shows how to use the TIMECONTAINER attribute to create a time container.
<HTML> <HEAD> <STYLE> .time { behavior: url(#default#time2);} </STYLE> </HEAD> <BODY> <MARQUEE CLASS="time" TIMECONTAINER="seq" REPEATCOUNT="indefinite"> <IMG CLASS="time" DUR="4" SRC="smilingWoman.gif" ALT="Smiling Woman"> <img CLASS="time" DUR="4" SRC="smilingMan.gif" ALT="Smiling Man"> <img CLASS="time" DUR="4" SRC="child.gif" ALT="Smiling Man"> </MARQUEE> </BODY> </HTML>
是否符合公共标准
This property is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 .
Applies To
A, ACRONYM, ADDRESS, t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION, t:ANIMATION, AREA, t:AUDIO, B, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, hn, HR, I, IFRAME, IMG, t:IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LEGEND, LI, LISTING, MARQUEE, t:MEDIA, MENU, OL, OPTION, P, PLAINTEXT, playItem, PRE, Q, t:REF, S, SAMP, t:SEQ, t:SET, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, time2, TR, TT, U, UL, VAR, t:VIDEO, XMP
更多语法参考
introduction to html+time, excl, par, seq