Results 1 to 3 of 3

Thread: Where do you edit in this code?

  1. #1
    Join Date
    Jan 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Where do you edit in this code?

    1) Script Title: AnyLink Drop Down Menu

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

    3) Describe problem: Where do you edit the main links in this code: Web Design | Technology | News Sites

    I only see a place to edit the drop down content from the main links.

    Thanks in advance...

  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

    From Step 2 (onmouseover example):

    Code:
    <a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Web Design</a>
    However, these links will only fire if javascript is unavailable or disabled. You can change this behavior by getting rid of:

    Code:
    onClick="return clickreturnvalue()"
    Without that, they will behave as normal links even with javascript enabled.

    Or, if you only want to change the text that is displayed (still from Step 2, first example):

    Code:
    <a href="default.htm" 
    onClick="return clickreturnvalue()" 
    onMouseover="dropdownmenu(this, event, menu1, '150px')" 
    onMouseout="delayhidemenu()">Web Design</a>
    Hopefully, without saying is how it goes if you are using the drop down onclick method (still from Step 2, second example):

    Code:
    <a href="default2.htm" 
    onClick="return dropdownmenu(this, event, menu2, '200px')" 
    onMouseout="delayhidemenu()">News Sites</a> (onclick)
    In cases like that, you can edit the link text (green in the above), but the link can never fire while javascript is enabled, because in cases like that, that's what causes the drop down to drop down.
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John, go figure that I was just missing it as I thought.

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
  •