REPEATDUR Attribute | repeatDur Property

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

Sets or gets the number of seconds that an element timeline repeats.

Sets or gets the number of seconds that an element timeline repeats.

Syntax

HTML <ELEMENT REPEATDUR = sTime... >
Scripting [ sTime = ] object.repeatDur

Possible Values

sTime A String that specifies one of the following values.
indefinite
Default. Timeline repeats indefinitely.
totaldur
Total amount of time to repeat the element timeline. The value must be specified as described in Time Formats.

The property is read/write. The property has a default value of indefinite.

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 containers , 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.

Example

This example uses the repeatDur attribute to demonstrate how to repeat an element timeline.

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

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

Applies To

t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION, t:ANIMATION, t:AUDIO, t:EXCL, t:IMG, t:MEDIA, t:PAR, t:REF, t:SEQ, t:SET, time2, t:VIDEO, t:TRANSITIONFILTER

See Also

Introduction to HTML+TIME, activeDur, dur, mediaDur, segmentDur, simpleDur