Results 1 to 2 of 2

Thread: Flex Level Drop Down Menu - How to use Click rather than Mouseover

  1. #1
    Join Date
    Jan 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Flex Level Drop Down Menu - How to use Click rather than Mouseover

    1) Script Title: Flex Level Drop Down Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...exdropdown.htm

    3) Describe problem:


    I would like to make the menu be Click rather than mouseover.

    I only want to go to a page when the user gets to the last level.

    How do I do this?

    URL: http://www.comedydog.com/index.php

    Thank you so much for the menu and for all your help!

    -Karin

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

    Default

    Are you looking for just the initial main menu to be triggered onClick, when the user clicks on the anchor link, or every level within the main menu as well? For the former, that's easy to do. Inside the .js file, just replace:

    Code:
    		$target.bind("mouseenter", function(e){
    			$flexmenu.css('zIndex', ++flexdropdownmenu.startzindex)
    			flexdropdownmenu.positionul($, $flexmenu, e, $target)
    			flexdropdownmenu.showbox($, $flexmenu, e)
    		})

    with:
    Code:
    		$target.bind("click", function(e){
    			$flexmenu.css('zIndex', ++flexdropdownmenu.startzindex)
    			flexdropdownmenu.positionul($, $flexmenu, e, $target)
    			flexdropdownmenu.showbox($, $flexmenu, e)
    			e.preventDefault()
    		})
    I only want to go to a page when the user gets to the last level.
    Why not just set the URL for every one of the other links inside the menu to say "#"?
    DD Admin

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
  •