higher Attribute | higher参数属性 | DHTML中文手册 |
Controls how elements with higher priority interrupt child elements of a priorityclass element.
dhtml语法
HTML <t:PRIORITYCLASS higher = sHigherPriority... > Scripting t:PRIORITYCLASS.higher [ = sHigherPriority ]
DHTML可能的值
sHigherPriority String that specifies or receives one of the following values.
pause Default. If a higher priority element begins while a child element of this priorityClass is active, the active child element is paused and resumes when the interrupting element completes its active duration. The paused element is added to the top of the pause queue. stop If a higher priority element begins while a child element of this priorityClass is active, the active child element is stopped. Any paused elements are also stopped, and the pause queue is cleared. The property is read/write. The property has a default value of pause.
DHTML代码范例
This example uses the higher attribute set to "stop" to show how elements with higher priority interrupt child elements of a priorityClass element.
<HTML XMLNS:t="urn:schemas-microsoft-com:time"> <HEAD> <TITLE>higher Property</TITLE> <?IMPORT namespace="t" implementation="#default#time2"> <STYLE> .time{ behavior: url(#default#time2);} </STYLE> </HEAD> <BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF" LINK="#000000" VLINK="#808080" ALINK="#000000"> <t:excl id="t1" begin="0;indefinite;"> <t:priorityclass> <SPAN id="s1" class="time" begin="5" dur="5"> <H3>Paragraph 1</H3> <P>Paragraph 1 begins at 5 seconds with a duration of 5 seconds.</P> </SPAN> </t:priorityclass> <t:priorityclass higher="stop"> <SPAN id="s2" class="time" begin="0" dur="10"> <H3>Paragraph 2</H3> <P>Paragraph 2 begins at 0 seconds until it is interrupted by a higher priority element at 5 seconds. Paragraph 2 ends.</P> </SPAN> </t:priorityclass> </t:excl> <BR> <BUTTON id="b1" onclick="t1.beginElement();">Click to restart</BUTTON> </BODY> </HTML>
是否符合公共标准
This property is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 .
Applies To
t:PRIORITYCLASS
更多语法参考
introduction to html+time, priorityClass