This will be used if we need to restore the element's original size and hide it after the transition. We convert dur , specified in seconds, to milliseconds by multiplying it by 1000. This value is stored in the mSecs variable. Explorer times the transitions internally, so the duration is exact. In Navigator, we will be attempting to duplicate this behavior by repeatedly calling a function at a specified interval, to perform a series of stements.
Many external factors come into play that keep the timing from being exact.
One hundred milliseconds was the best interval in our tests. We store this value in the visits variable. We, therefore, declare four more variables, fullW , fullH , halfW and halfH to store these values. Finally, two Boolean variables, alternateW and alternateH are initialized to true . Their function will be discussed further down.