repeatDur property
Sets or gets the number of seconds that an element timeline repeats.
Syntax
JScript |
---|
|
Property values
Type: String
A String that specifies one of the following values.
Remarks
Use the dur property or the end property to define each repeat iteration. The repeatDur property has no effect if the duration is not defined or is indefinite.
Do not use this property on the same element as the REPEATCOUNT attribute. Typically, repeatDur is set on elements that are time container, such as the t:PAR or t:SEQ elements. Elements with the TIMECONTAINER attribute set are also time containers. If you set the REPEATDUR attribute on an element that is not a time container, it sets the element duration to the repeatDur value. This property is useful to coordinate the timing of an element with a media element that has a fractional duration, such as an audio file with a duration of 3.45
seconds.
A repeatDur value of zero is invalid. If zero is specified, the default value is used instead.
In Microsoft Internet Explorer 6, the repeatDur property applies to the transitionFilter.
Examples
This example uses the repeatDur attribute to demonstrate how to repeat an element timeline.
Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/repeatdur.htm
<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>repeatDur 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:SEQ repeatDur="27" begin="0">
<DIV ID="d1" CLASS="time" DUR="3">The first line appears for 3 seconds.</DIV>
<DIV ID="d2" CLASS="time" DUR="3">The second line appears for 3 seconds after the
first line disappears.</DIV>
<DIV ID="d3" CLASS="time" DUR="3">The third line appears for 3 seconds after the
second line disappears. The first line reappears.</DIV>
</t:SEQ>
</BODY>
</HTML>
See also
Reference
Conceptual