Can someone please take a look at this and help me where I am going wrong I am so rubbish with jQuery!
Basically, I hide the sub_menu, then added a hover event on the dropdown which fades in the sub_menu on mouseover and fades the sub_menu out when the mouse leaves. If you need more of an explanation, just ask :)
I have tried your code but can’t see it working.
Immediately on page load the menu appears then fades away but when I hover it doesn’t reappear.
I just pasted in @Mottie‘s script, it seems to be working.
This is crazy works perfectly in the jsFiddle but not on my local server. Must be something conflicting.
You should add this to your page:
(remember jsfiddle does the script tag and the on dom load for you)
Excellent works a treat mate.
Is there a better way to write this so when the page loads I don’t see the menu fade out?
Yeah there is:
You must be logged in to reply to this topic.