The onrepeat event is used to create a simple time-line timer for the t:MEDIA element in this sample. The time between the timer updating can be changed by changing the value of the dur property of the repeating time element. Clicking on the button labeled "More Precise Timer" shortens the time between timer updates (smaller dur value), while clicking on the "Less Precise Timer" button lengthens the time-update interval (larger dur value).
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.