Advanced Search

Results 1 to 4 of 4

Thread: AnyLink Menus

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

    Default AnyLink Menus

    I'd like to use both the AnyLink horizontal and vertical menus on the same page, but noticed that they both use the same div tag names and array names. I assume this won't work if I try this.

    Is there any way to accomplish this?

    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,694
    Thanks
    43
    Thanked 3,132 Times in 3,096 Posts
    Blog Entries
    12

    Default

    Change them and any references to them in one of the scripts. Also, if there are any other shared items like global variable names, global function names, etc., if these are different and/or are altered by their script, these must be given new names in the altered script, if some of these are identical in value and use and their use won't conflict with the other script, the second one on the page could alternatively be removed. Safest to just make uniquely named ones though.
    - John
    ________________________

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

  3. #3
    Join Date
    Jun 2006
    Location
    San Jose, CA
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've implemented both, the HORIZONTAL and VERTICAL AnyLink navigation items and both work great, with one exception. On the horizontal navigation, I have five buttons that drop-down, the four on the left work fine, the drop-down for the fifth (far right) appears two buttons to the left. Here are the scripts:

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

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

    Here's a SS:


    All vertical navigation works fine too. Both hor and vert nav use rollover images, which also work. So...what should I look for to fix this fifth button and drop-down not lining up properly?

    PLEASE HELP!

    Thanks in advance,
    Ron
    Last edited by RON8O; 02-01-2007 at 10:42 PM.

  4. #4
    Join Date
    Jun 2006
    Location
    San Jose, CA
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem solved!

    I separated the horizontal and vertical navigation JavaScript into separate files (topnav.js and leftnav.js).

    I had to go through each of the files and remove all of the duplicate items (functions) one at a time from the leftnav.js, then tested each and every removal. Some code stayed removed, and some (if removed) broke the left navigation JavaScript menu. The code that (when removed) broke the nav was put back, saved and tested.

    This worked for me!

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
  •