Results 1 to 8 of 8

Thread: Clicking on the Anylink dropdown menu

  1. #1
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Clicking on the Anylink dropdown menu

    1) Script Title: AnyLink Drop Down Menu

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

    3) Describe problem:

    Clicking on items on the menu (e.g. Inhouse Workshops, Public Workshops) brings up the right pages.

    However, clicking on the menu name itself (e.g. Workshops) does not show the linked page.

    Coding is as-given. Is this how the menu works? Hope not. What can I do to

    Much thanks in anticipation. :-)

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

    Default

    Yep, you can toggle this behavior near the top of the script:

    Code:
    var hidemenu_onclick="yes" //hide menu when user clicks within menu?
    Set it to "no."

  3. #3
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Delay in script/style updating?

    Thank you.

    Hope it works. Have made the change and nothing seems to have changed.

    A related question: Does script take a longer time (like stylesheets) to be updated/reflected on a website?

    So far, I've noticed that changes made to stylesheets or javascripts don't seem to show until a long time after. Tried to clear cache, delete temporary files, etc. but to no avail.

    Is there something else I can do to speed things up?

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

    Default

    The changes should be instantaneous, both with the change I posted above, and changes to your CSS. To prevent your browser from potentially caching your files, press "shift" reload. In other words, hold down the shift key while reloading.

  5. #5
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sigh! Still can't get the click on the menu name.

    Shift+Load opens a new window on the menu name, but after that, clicking on the menu name still gets no response.

    Now, got an error message:

    delayhidemenu is not defined
    onmouseout( )


  6. #6
    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

    I think ddadmin misunderstood your question, though I could be wrong. Anyways, as I see it, you are not concerned about the menu disappearing when clicked, so should have left that part alone. It seems to me that you want (as have many others) for the the trigger links (which ordinarily do nothing but trigger the appearance of the drop downs unless javascript is disabled) to actually work as links when clicked.

    Now, this doesn't make much sense unless you are using onmouseover to trigger the drop downs. If you are, just remove the onclick event (red) from the triggers (example from the demo page):

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

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

  7. #7
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you! You are right. :-)

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

    Default

    Well you can always count on John to straighten things out. Actually I didn't misunderstand the question, just got absent minded when it came to what the setting:

    Code:
    var hidemenu_onclick="yes" //hide menu when user clicks within menu?
    actually does. FYI it's for hiding the menu when the user clicks anywhere on the page.

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
  •