Results 1 to 3 of 3

Thread: mega drop down menu click action

  1. #1
    Join Date
    Aug 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default mega drop down menu click action

    I am installing the mega drop down menu from DD. I would like to find out how to change the mouse over action on the drop down menu buttons to a on click action. Below is a link with the current mouse over action.
    attentively,

    http://pabloserrano.com/test/liashkov/home.html

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:

    Warning: Please include a link to the DD script(s) in question in your post. See this post for more information.


    That said, get rid of the second docinit(). You're not using it. To change to click activation, use the trigger property as stated on the demo page:

    ddmegamenu.docinit() settings
    setting / option Description
    . . .
    trigger - How the Menu should be triggered. The default is "mouseover", or when the mouse rolls over the anchor link. Supported values are: "mouseover" and "click".
    In other words, change:

    Code:
    <script>
    
    ddmegamenu.docinit({
    	menuid:'solidmenu',
    	dur:400 //<--no comma after last setting
    })
    
    	
    ddmegamenu.docinit({
    	menuid:'megaanchorlink',
    	dur:500,
    	easing:'easeInOutCirc' //<--no comma after last setting
    })
    
    </script>
    to:

    Code:
    <script type="text/javascript">
    
    ddmegamenu.docinit({
    	menuid:'solidmenu',
    	trigger:'click',
    	dur:400 //<--no comma after last setting
    })
    
    </script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for your replay. The menu is working great!

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
  •