|
October 11, 2000 Deriving HTML+TIME's Active Time Tips: October 2000
Yehuda Shiran, Ph.D.
|
|
The HTML+TIME capability in IE 5.5 and up is based on the timeline principle. Some applications require that you know exactly the time you are at. You do it by using the currTimeState object, which is a property of any container that participates in the HTML+TIME behavior. One of currTimeState's many properties and methods is the activeTime property. The activeTime property reports the exact time the script is on. The following example (based on a Microsoft script) demonstrates the usage of activeTime. When you click the button, we print the active time. Since it is instantanous, you will see a larger number every time you click the button. Here is the function that prints the active time of the timeline:
And here is the Demo:
Heading 1Heading 2Heading 3Heading 4Heading 5Heading 6
Learn more about HTML+TIME in Column 67, Introduction to HTML+TIME.
People who read this tip also read these tips: Look for similar tips by subject: |