|
October 10, 2000 Determining HTML+TIME's Active Elements Tips: October 2000
Yehuda Shiran, Ph.D.
|
|
The HTML+TIME capability in IE 5.5 and up is based on the timeline principle. An element can be either active or non-active at a certain time point. The activeElements collection groups all elements participating in the t:PAR element and are currently active. The following example (based on a Microsoft script) demonstrates the usage of activeElements. When you click the button, we print the active elements along the timeline. Since they come and go, you will get different printout every time you click the button. We iterate through the active elements with the Enumerator object and its four methods: atEnd(), moveFirst(), moveNext(), and item(). Here is the function that prints the active elements of the page:
Heading 1Heading 2Heading 3Heading 4Heading 5Heading 6 |