I have a problem with the below code. I'm pretty new to jquery so it could be obviously missing something! There is no real issue with what I've done, except if you go crazy with the mouse over the menu, it just keeps playing for that ammount of rollovers.
I've tried adding the .stop() to just infront of .slideDown etc, but when you go crazy with the mouse, it eventually just hides the entire menu and you cant get it back.
edit - didn't know where to put this in web design or programming :blink: .. saw a post from like 2008 on jquery here so i just followed the general trend :p
Question
Callum1001
[solved]
Hey,
I have a problem with the below code. I'm pretty new to jquery so it could be obviously missing something! There is no real issue with what I've done, except if you go crazy with the mouse over the menu, it just keeps playing for that ammount of rollovers.
The jquery is:
$("ul#menu > li > a").find("+ ul").hide(); $('ul#menu > li.toplevel').hover( function(){ $('ul', this).slideDown("fast") }, function(){ $('ul', this).slideUp("fast") });I've tried adding the .stop() to just infront of .slideDown etc, but when you go crazy with the mouse, it eventually just hides the entire menu and you cant get it back.
You can see the working menu here
Any ideas on how to fix that?
edit - didn't know where to put this in web design or programming :blink: .. saw a post from like 2008 on jquery here so i just followed the general trend :p
Edited by Callum1001Link to comment
Share on other sites
4 answers to this question
Recommended Posts