Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder Andy92's Avatar
    Join Date
    Nov 2005
    Location
    Horsham, West Sussex, UK
    Posts
    363
    Thanks
    7
    Thanked 1 Time in 1 Post

    Javascript Dhtml Drop Down Menu

    Hi there,

    I followed and successfully installed this dhtml javascript drop down menu. The link is at the following url...

    http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    I have installed it on my website below...

    http://www.allsortgroup.com

    But, with the <a href> tags that have javascript hover functions on them, eg, on my website above, on links in the menu which have a drop down menu like the blog link, users can only click on the items in the blog drop down menu, not the acctual blog menu link that will take them to http://www.allsortgroup.com/blog

    How can i enable it so that links with drop down menu javascript functions applied to them can be clicked aswell as their drop down menu items?


  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adirondacks
    Posts
    516
    Thanks
    4
    Thanked 4 Times in 4 Posts
    For onclick you're returning a value in div id-top nav seems like two reactions for the same one action

  • #3
    Regular Coder Andy92's Avatar
    Join Date
    Nov 2005
    Location
    Horsham, West Sussex, UK
    Posts
    363
    Thanks
    7
    Thanked 1 Time in 1 Post
    Could you possibly explain this further?

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adirondacks
    Posts
    516
    Thanks
    4
    Thanked 4 Times in 4 Posts
    that line of code with the blog link.
    A href you want to open a link when clicked, right?
    Onclick you want to work when it's clicked too.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adirondacks
    Posts
    516
    Thanks
    4
    Thanked 4 Times in 4 Posts
    this one (click example to see)
    http://www.aspandjavascript.co.uk/ja...2/examples.asp

    I like.
    I updated one .js file and it updates the menu on all the pages.
    Took about 2 minutes to figure out his code and change the example menu into one of my own, with my own links, colors etc.

  • #6
    Regular Coder Andy92's Avatar
    Join Date
    Nov 2005
    Location
    Horsham, West Sussex, UK
    Posts
    363
    Thanks
    7
    Thanked 1 Time in 1 Post
    I have had a look through the tutorial you posted, but there is sooo much javascript. The menu i use has hardly any javascript.

    I have deleted the onclick function, and now i can click the main menu items, and the menu still works fine

    Thank you!


  •  

    Posting Permissions

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