currTimeState Object | DHTML中文手册 |
Contains information about an HTML+TIME timeline.
Members Table
Property Description activeDur Retrieves the total duration of the timeline. activeTime Retrieves the current point in time along the total active timeline, including repeats and time spent in reverse mode. isActive Retrieves a value that indicates whether the element is currently active on the timeline. isMuted Retrieves a value indicating whether the element's audio is currently muted. isOn Retrieves a value that specifies whether the element is active or holding on the timeline in its current state. isPaused Retrieves a value that specifies whether the element is paused on the timeline. parentTimeBegin Retrieves the current element's begin time as an offset from the parent element's begin time. parentTimeEnd Retrieves the current element's end time as an offset from the parent element's begin time. progress Retrieves the current progress of the element's timeline. repeatCount Retrieves the current iteration in the repetition loop. segmentDur Retrieves the duration of an element on a timeline in seconds, including autoreverse. segmentTime Retrieves the current point in time along a segment of time. simpleDur Retrieves the duration of a repeat iteration. simpleTime Retrieves an object's current point along its timeline from zero to its dur value. speed Retrieves the playback speed of an element at run time, which includes the cascading effect of the speed set for the parent time container. state Retrieves the current state of the element's timeline. stateString Retrieves the current state of the element's timeline. volume Retrieves the playback volume of an element at run time.
Remarks
The currTimeState object is a child of the objects listed in the Applies To list at the end of this page. Therefore, the syntax for the currTimeState object is:
objectID.currTimeState.propertyNameUse code similar to the following example to access the repeatcount property of an img object with an id value of myIMG.var nCount; nCount = myIMG.currTimeState.repeatCount;
是否符合公共标准
This object is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) .
Applies To
t:TRANSITIONFILTER, t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION, t:AUDIO, t:IMG, t:MEDIA, t:PAR, t:REF, t:SEQ, t:SET, time2, t:VIDEO
更多语法参考
Introduction to HTML+TIME