Hi guys
I am using a customized version of this free css dropdown menu script. It is just pure css, no jquery. I wanted to add some delay to the open and close on mouseover, here is what I added:
When I first mouse over, this does nothing, but if I mouse over the same drop down li a second time, it works. Check it out here.Code:<script type="text/javascript"> $(document).ready(function () { $('ul.dropdown li').hover( function () { //show its submenu $('ul', this).slideDown(150); }, function () { //hide its submenu $('ul', this).slideUp(250); } ); }); </script>
Any ideas on how I can fix this?



Reply With Quote

Bookmarks