1 Reply Latest reply on Oct 30, 2006 6:58 PM by Craig Grummitt

    setInterval Help

    breez11 Level 1
      I am trying to have a tab slide out onRollOver then slide back onRollOff. Currently I have got it to move to my target location but without the transition. Here is my attempt
        • 1. setInterval Help
          Craig Grummitt Level 3
          here's how I might go about it.

          some problems with your code:
          putting the movement inside your rollover handler confuses things. it can be done, but really you want your movement to be triggered by the rollover, which means the way you have it set up you would need your setinterval inside your onRollover, which is the function your setinterval is calling, making for a recursive headache. also, you set up your movement in a while loop of one interval, when really you want your tab to move a step at a time over several intervals. change your 'while' to an 'if' to see what i mean.