Well, getting the sub menu to disappear onclick is fairly easy. As mentioned in this thread, just add the code in red below the existing line in black:
Code:
$mainmenu.find("ul").css({display:'none', visibility:'visible'})
$mainmenu.find("ul").css({display:'none', visibility:'visible'}).click(function(e){
$(this).animate({height:'hide', opacity:'hide'}, ddsmoothmenu.transition.outtime)
this.parentNode.$shadow.stop().css({height:0})
})
As far as getting the entire menu to react onclick (instead of onhover), there are subtle issues that make this more time consuming to do. I haven't tried Snookerman's mod yet, but this is probably something I can only consider doing the next time I update this script. For the time being if you're willing to use All Levels Menu instead, there is a mod for that which makes it react onClick: http://www.dynamicdrive.com/forums/s...ad.php?t=40787
I'm aware of the shadow issue, which unfortunately is still there in IE6 (but not IE7). Until I can find a solution, one obvious workaround is just to disable the shadow effect.
Bookmarks