t:PRIORITYCLASS Element | priorityClass Object

This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.

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

Members Table

The following table lists the members exposed by the priorityClass object.

Attribute Property Description
higher higher

Controls how elements with higher priority interrupt child elements of a priorityClass element.

Controls how elements with higher priority interrupt child elements of a priorityClass element.
lower lower

Controls how elements that are defined with lower priority interrupt child elements of a priorityClass element.

peers peers

Controls how child elements of a priorityClass element interrupt one another.


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 document is completely loaded, that all behaviors have been applied to corresponding elements on the document , 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.


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

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<TITLE>priorityClass Element</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">

    .time {behavior: url(#default#time2);}


<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


    <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>

<BUTTON id="b1" onclick="t1.beginElement();">Click to restart</BUTTON>

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/priorityclass.htm

See Also

Community Additions