|
Re: [jQuery] hover function goes bezerk in loop: msg#01229lang.javascript.jquery
Hello - I fixed up the problem with your delay menu, it can be found here: http://jquery.com/files/demo/delaymenu.html A couple things: clearInterval() doesn't set navTimer to null, or false, you have to do that explicitly. Additionally, you should only slide down the menu if there is no timer currently running. Hope this helps. --John On 10/14/06, code enquest <code@xxxxxxxxxx> wrote: > Hello, > > Consider the following example: http://enquest.eu/test.html ... > > I made a example where a submenu slides out when you go over it with the > mouse. > The problem I have with these animations is as follows. > > You go over the test menu it opens nicely. Then you go over mouseout the > timeout goes and the menu closes. But if you go then back over the menu > before it ends the animation it goes up down up down in a loop as if it > doesn't know anymore if it opens close or close. > > How do I prevent this? > > enquest
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [jQuery] Greybox Redux (Reworked) (Demo), Erin Doak |
|---|---|
| Next by Date: | Re: [jQuery] Greybox Redux (Reworked) (Demo), Erin Doak |
| Previous by Thread: | [jQuery] hover function goes bezerk in loop, code enquest |
| Next by Thread: | Re: hover function goes bezerk in loop, code enquest |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |