Results 1 to 3 of 3

Thread: AnyLink Drop Down Menu Help

  1. #1
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink Drop Down Menu Help

    I am using the Anylink Drop Down Menu http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    It works perfectly except I can't get the actual link on the navigation bar to click to another page (the drop down menu links will): this is the code on the website:


    <a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Web Design</a>

    So I presume if someone clicks on the heading Web Design it should go to the default.htm page?

    Below is the code I have added to my website:

    <a href="ourcars.html" class="bluelinks" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '85px')" onMouseout="delayhidemenu()">Our Cars</a>

    When I click on it, it doesn't do anything. I don't know Javascript at all but thought it must be something very simple that I am doing wrong.

    Thanks

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

    Default

    You'd simply remove the "onClick" portion from your anchor links:

    Code:
    <a href="ourcars.html" class="bluelinks" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '85px')" onMouseout="delayhidemenu()">Our Cars</a>

  3. #3
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you! Works perfectly now.

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
  •