Results 1 to 3 of 3

Thread: AnyLink Drop Down - Top Level Links?

  1. #1
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink Drop Down - Top Level Links?

    1) Script Title: AnyLink Drop Down Menu

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

    3) Describe problem: I've implemented the AnyLink script using images and successfully incorporated a rollover script as well. Now, I just realized that my top-level images aren't clickable links...which I've discovered is also the case in the sample on the script's page here at DD. How can I modify this script to make my top-level menu images clickable links? Do I need to modify the onclick property?

    I noticed that if I delete the "return clickreturnvalue()" from the onclick property, the link will indeed click through. It seems to work fine this way, but I don't know if there's some secret damage waiting to show itself down the road...?

    This is what a link looks like:
    Code:
    <a href="seasonpage.html" onClick="return clickreturnvalue()" onMouseover="rollover('season'),dropdownmenu(this, event, menu1, '185px')" onMouseout="rollout('season'),delayhidemenu()"><img name="season" border="0" src="menu_season.jpg" /></a>
    What do you think?

  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

    No secret damage. The only purpose of the:

    Code:
    onClick="return clickreturnvalue()"
    is precisely to prevent the link from working as, most folks don't want it to.

    You see, what can be done is that since, without javascript, there will be no drop downs, and the link will work even with the above event (ignored in non-javascript enabled browsers), it can be for alternate non-javascript enabled content. However, it is perfectly fine to get rid of the onclick event and use the link if you like. Especially if it takes you to a page where the drop down choices from that link are available.
    - John
    ________________________

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

  3. #3
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That is precisely what I intend to do with the link! Thanks for the help.

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
  •