View Full Version : How to change the flexmenu from onmouseover to onclick

06-05-2015, 03:16 PM
1) Script Title:

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/flexdropdown.htm

3) Describe problem:

I'm using flexmenu Version 2.0 (April 16th, 2015): How I can change the main menu (not the sub-menu) to show-up onclick? I've replaced the below code:

this.triggerevt = (this.ismobile) ? "click" : "mouseenter"


this.triggerevt = (this.ismobile) ? "click" : "click"

But it also changed the sub-menu to click!

06-05-2015, 04:42 PM
Try the below modified .js file, which causes the top level menu to be triggered onclick of the anchor link, but the sub menus to continue to be shown onMouseover.

06-05-2015, 06:44 PM
Thanks Admin it works fine, any idea why the below line: (#18 in the js file)


is prevent the website to load the jquery file!؟ It works fine if I disable it!