PAR Element | par Behavior
Defines a new timeline container in an HTML document for independently timed elements.
Syntax
XML <t:PAR ID="sID" STYLE="behavior:url(#default#time)" /> HTML N/A Scripting N/A
Possible Values
sID String that specifies a unique identifier for the object.
Members
Remarks
All HTML descendants of this element have independent, or parallel, timing.
Use this element instead of the TIMELINE attribute to create a time container without using an HTML element. All descendant elements, or time children, of this new time container inherit the time properties of their container. Unlike the time children of the SEQ element, the PAR descendants have no implicit timing relationships with each other, and their timelines might overlap. The PAR element effectively groups elements together so they can be easily modified as a single unit.
The prefix t is used to associate this element with an XML namespace. You must include the following line of code in the HEAD section of your HTML document when using this element.
<XML:NAMESPACE PREFIX="t"/>The PAR element is available as of Internet Explorer 5, only in the Microsoft® Win32® platform.
Example
This example uses the PAR element to apply a timeline to a group of HTML elements.
Sample Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <XML:NAMESPACE PREFIX="t"/> <STYLE> .time { behavior: url(#default#time);} </STYLE> </HEAD> <BODY BGCOLOR="white"> <FONT FACE="Verdana"> <t:PAR CLASS=time t:BEGIN="0" t:DUR="10" t:TIMEACTION="display"> <H3>Paragraph 1</H3> <P>This is paragraph number one. It appears for ten seconds immediately after the page is loaded.</P> <SPAN CLASS=time t:BEGIN="5"> <H3>Paragraph 2</H3> <P>This is paragraph number two. It appears five seconds after the page is loaded, and remains displayed until its parent element's timeline ends at ten seconds.</P> </SPAN> </t:PAR> </FONT> </BODY> </HTML>
See Also
html+time, SEQ, TIMELINE
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.