REPEATDUR Attribute | repeatDur Property

Internet Development Index

Sets or retrieves the number of seconds that an element's timeline repeats.

What's New for Microsoft?Internet Explorer 6

The repeatDur property applies to the transitionFilter.

Syntax

HTML<ELEMENT REPEATDUR = sTime... >
Scriptingobject.repeatDur [ = sTime ]

Possible Values

sTimeString爐hat specifies one of the following values:
indefiniteDefault. Timeline repeats indefinitely.
totaldurTotal amount of time to repeat the element's 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 or 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's duration to the repeatDur value. This property is useful for coordinating 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 0 is invalid. If 0 is specified, the default value is used instead.

Example

This example uses the repeatDur attribute to demonstrate how to repeat an element's 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>
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.

Standards Information

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

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