For example, if passed from a form input, transNo would be a string, as is the case with the live example on the first page of this column. Then we create a variable, endState , that stores the state the element should be in when the transition is complete. Next, we compare the value of transNo with the values in arHidden . If there is a match, it means our transition should take whichEl from a hidden state to a visible one. If one of these transitions is invoked, whichEl should already be hidden .
All elements have an onfilterchange event which fires when a filter effect is complete.
In the case of transitions, it fires when the element has changed to its new state . The reason is discussed below. Next, we change the visibility of the element, using endstate as the value assigned to the visibility property. The preferred behavior is for a new, random, transition to be applied, every time we use 23 as the transition type. To accomplish this, we must clear the filter property at the end of a transition, so Explorer will be forced to choose a new random transition for the element if we require one later.