Guest Posted July 31, 2013 Share Posted July 31, 2013 Hi, I have found a script off the internet that is very simple, it just allows my menu to have a drop down list. It is basically this script: http://jsfiddle.net/297t6/ Here's the change I want to make that I don't know how to do: When the user hovers over a menu item, it drops down; if you then hover over another menu item, that first menu item is still sliding down and then coming back up. I want the drop down to disappear as soon as the user hovers over the next menu item. Is this possible to implement with this code: $(function(){ $('ul#menu li').hover(function(){ //$('#drop' , this).css('display','block'); $(this).children('ul').delay(0).slideDown(500); }, function(){ $(this).children('ul').delay(0).slideUp(50); }); }); Link to comment https://forums.phpfreaks.com/topic/280666-drop-down-menu-scriptscript/ Share on other sites More sharing options...
gristoi Posted July 31, 2013 Share Posted July 31, 2013 yes it is Link to comment https://forums.phpfreaks.com/topic/280666-drop-down-menu-scriptscript/#findComment-1442770 Share on other sites More sharing options...
Guest Posted July 31, 2013 Share Posted July 31, 2013 Does anyone know what I would need to add to the above code to do what i described above? Link to comment https://forums.phpfreaks.com/topic/280666-drop-down-menu-scriptscript/#findComment-1442779 Share on other sites More sharing options...
Guest Posted August 1, 2013 Share Posted August 1, 2013 Hi Gristoi, your response has not been helpful because I meant that I wanted to add the drop down menu disappearing thing into the above code. Do you know if it can be added into the above code or not. If you do not know or can't help, please let me know so that I can ask somewhere else where they might know. Link to comment https://forums.phpfreaks.com/topic/280666-drop-down-menu-scriptscript/#findComment-1442921 Share on other sites More sharing options...
gristoi Posted August 1, 2013 Share Posted August 1, 2013 my response is as helpful as your request is general. If you expect help on the forum then please at least explain what you have tried to do to get this working. You will not get a lot of help from the forum users if you have not at least tried to get it working. the people here are here to help people with php issues, NOT to complete code that they cannot be bothered to do themselves, or finish their homework for them. If you don't want to do it yourself then post this in the freelance section and pay someone for their time. Link to comment https://forums.phpfreaks.com/topic/280666-drop-down-menu-scriptscript/#findComment-1442925 Share on other sites More sharing options...
Guest Posted August 1, 2013 Share Posted August 1, 2013 Well, that is an interesting response. I hope you feel better now. Doesn't solve my problem at all - and I have tried, but yeah, cool. Link to comment https://forums.phpfreaks.com/topic/280666-drop-down-menu-scriptscript/#findComment-1442929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.