|
October 26, 2000 Checking if Active Along the Timeline 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 whether an element is currently active on the timeline. 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 isActive property. The isActive property reports whether an element is active (returns a true value) or not (returns a false value). The following example (based on a Microsoft script) demonstrates the usage of isActive. When you click the button, we print whether the element parallel is active. Since this HTML+TIME example runs forever, the answer will always be true. Here is the function that prints whether the element is active:
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: |