HBCMS更多的中文手册参考:

t:PRIORITYCLASS Element | priorityClass Object

DHTML中文手册

Defines a group of excl children and the pause/interrupt behavior of the children.

members table

AttributePropertyDescription
higherhigher Controls how elements with higher priority interrupt child elements of a priorityClass element.
lowerlower Controls how elements that are defined with lower priority interrupt child elements of a priorityClass element.
peerspeers Controls how child elements of a priorityClass element interrupt one another.

Remarks

If a priorityClass element appears as the child of an excl element, the excl element can only contain priorityClass elements. An author cannot mix timed children and priorityClass elements within an excl element.

A priorityClass element does not affect timing; it defines only the way in which elements interrupt one another. The order in which priorityClass elements are declared within an excl time container defines the priority for each element. The first priorityClass element declared has the highest priority and the last priorityClass element declared has lowest priority.

A priorityClass element cannot contain other priorityClass elements.

The prefix t: is used to associate this element with an XML namespace. You must declare the XML namespace in the html tag of your document when using this element.

<HTML XMLNS:t ="urn:schemas-microsoft-com:time">

You must then import the tag definitions from the time2 behavior by using the IMPORT processing instruction.

<?IMPORT namespace="t" implementation="#default#time2">

The members listed in the following table might not be accessible through scripting until the window.onload event fires. waiting for this event to fire ensures that the page is completely loaded, that all behaviors have been applied to corresponding elements on the page, and that all the behavior's properties, methods, and events are available for scripting. using any of the behavior-defined members before the window.onload event fires could result in a scripting error, indicating that the object does not support that particular member.

this element is not rendered.

this element requires a closing tag.

DHTML代码范例

This example demonstrates one of the ways to use the priorityClass element.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>priorityClass Element</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time {behavior: url(#default#time2);}
</STYLE>
</HEAD>
<BODY>
<t:excl id="t1" begin="0;indefinite">
<t:priorityClass >
<SPAN id="s1" class="time" begin="7" dur="5">
<H3>Paragraph 1</H3>
<P>Paragraph 1 begins at 7 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 is displayed until it is interrupted by a
higher priorityClass (at 7 seconds). Paragraph 2
pauses and is added to a queue of pending elements.
When Paragraph 1 completes its active duration,
Paragraph 2 resumes and will complete its duration.</P>
</SPAN>
</t:priorityClass>
</t:excl>
<BR>
<BUTTON id="b1" onclick="t1.beginElement();">Click to restart</BUTTON>
</BODY>
</HTML>
This feature requires Microsoft?Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

This object is defined in Synchronized Multimedia Integration Language (SMIL) 2.0 Non-Microsoft link.

更多语法参考

introduction to html+time, time2