Results 1 to 3 of 3

Thread: How to change the flexmenu from onmouseover to onclick

  1. #1
    Join Date
    Jun 2015
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to change the flexmenu from onmouseover to onclick

    1) Script Title:

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...exdropdown.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:

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

    Code:
    this.triggerevt = (this.ismobile) ? "click" : "click"
    But it also changed the sub-menu to click!
    Last edited by ddadmin; 06-05-2015 at 04:17 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.
    Attached Files Attached Files
    DD Admin

  3. #3
    Join Date
    Jun 2015
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks Admin it works fine, any idea why the below line: (#18 in the js file)

    Code:
    jQuery.noConflict()
    is prevent the website to load the jquery file!؟ It works fine if I disable it!

Similar Threads

  1. DDtabmenu onclick instead of onmouseover
    By mholmquist in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-08-2009, 09:39 PM
  2. onmouseover and onclick in one <div> tag possible? / thumbnailviewer2.js
    By Doreen in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-23-2008, 06:56 AM
  3. Replies: 0
    Last Post: 10-23-2007, 09:35 AM
  4. Replies: 5
    Last Post: 03-18-2007, 05:00 AM
  5. DD Tab Menu II - Urgent Help - how to change onmouseover to onclick
    By techie_ns in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 04-30-2006, 05:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •