segmentDur Property

This example uses the currTimeState.segmentDur property to retrieve the duration of the elements on the timeline.

Document timer: 0
Time container timer: 0


Paragraph 1

Paragraph 1 is displayed until it is interrupted by the next element (at 5 seconds); it then resumes its duration of 10 seconds.

Paragraph 2

Paragraph 2 is displayed for 5 seconds; Paragraph 1 then resumes its duration.


Duration of paragraph 1 on timeline:  second(s)
Duration of paragraph 2 on timeline:  second(s)

To view the source code, right-click this page and choose View Source from the shortcut menu that appears.

© 2007 Microsoft Corporation. All rights reserved. Terms of use.