|
Re: hover function goes bezerk in loop: msg#01235lang.javascript.jquery
John Resig schreef: > 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 >> > > _______________________________________________ > jQuery mailing list > discuss@xxxxxxxxxx > http://jquery.com/discuss/ > > Thanxs this really helps
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [jQuery] [ANN] JReflection, Abdur-Rahman Advany |
|---|---|
| Next by Date: | Greybox Redux (More fixes, thank you for feedback), Benjamin Yu |
| Previous by Thread: | Re: [jQuery] hover function goes bezerk in loop, John Resig |
| Next by Thread: | [jQuery] Column totals in sortable table, Bruce McKenzie |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |