Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Anylink Menu works on one, not the other

  1. #1
    Join Date
    Mar 2010
    Location
    Pacific Northwest
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Anylink Menu works on one, not the other

    1) Script Title: Anylink JS Drop Down Menu v2.0

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

    3) Describe problem: I've been using this code on my site with no problems...it works as advertised. See at: www.todaystruth.com/Mags.htm
    My problem is that I'm now redesigning the page to match the Home page, and I can't get the thing to work on the new page. I copied and pasted all the pertinent code so I wouldn't leave anything out, both in the Head section and the Body, but when I preview in the browser it won't work. Am I breaking some js rule of which I am unaware? Thanks in advance.

  2. #2
    Join Date
    Mar 2010
    Posts
    14
    Thanks
    1
    Thanked 5 Times in 5 Posts

    Default

    Could you give a link to the page that you're designing?

    If I had to guess, you might need to duplicate the naming scheme if you want two instances of the same menu on the same page. Is that what you're trying to do? Or is it simply trying to migrate things over to the new/redesigned page?

  3. #3
    Join Date
    Mar 2010
    Location
    Pacific Northwest
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    The page I'm designing is not yet online...just on my PC. And yes, I'm "simply trying to migrate things over to the new/redesigned page" so I don't understand why it works on the original and not on the new. I'm working within Dreamweaver MX, and the original page (on my PC) works when I preview it, but the new does NOT. The scripts are identical.

  4. #4
    Join Date
    Mar 2010
    Posts
    14
    Thanks
    1
    Thanked 5 Times in 5 Posts

    Default

    Okay, I'd check the following two things, since I don't have your page that you're designing in front of me.

    1. Are the .js files included in the <head> section of your page?
    2. Check the names assigned to the divs, and make sure they're not duplicated.

  5. The Following User Says Thank You to icywindow For This Useful Post:

    Woody56 (03-06-2010)

  6. #5
    Join Date
    Mar 2010
    Location
    Pacific Northwest
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    OK icywindow, I've checked both things, and yes the .js files are called from the <head> section as they are on the original page. Also, I couldn't find any duplicate divs in the page. Is there any easy way I can let you see the new page I'm designing, or is that too large to post here? Just the code, since I obviously can't include the .js files or the stylesheets.
    Last edited by Woody56; 03-04-2010 at 06:32 PM.

  7. #6
    Join Date
    Mar 2010
    Posts
    14
    Thanks
    1
    Thanked 5 Times in 5 Posts

    Default

    http://pastebin.com/
    http://pastie.org/

    Either of these works well for pasting the code. Get a link and paste the link to the code for the page.

  8. The Following User Says Thank You to icywindow For This Useful Post:

    Woody56 (03-06-2010)

  9. #7
    Join Date
    Mar 2010
    Location
    Pacific Northwest
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    OK, icy...here's the link: http://pastebin.com/3kvRgt8a
    And I posted under my UserName of Woody56. The pertinent lines are 10, 12, 14, 26, 72, 87, 90, 105, 108. Hope you can find something I'm missing to make this an easy fix!
    Last edited by Woody56; 03-05-2010 at 03:51 AM.

  10. #8
    Join Date
    Mar 2010
    Posts
    14
    Thanks
    1
    Thanked 5 Times in 5 Posts

    Default

    Where is your MMLoadMenus() declaration in the header of that page? I think either you have to remove that call in the body or add the code to the <head> section of the page so that the javascript compiler doesn't error out like I believe that it is currently, and thus not showing your menus.

    Hope that helps.

  11. The Following User Says Thank You to icywindow For This Useful Post:

    Woody56 (03-06-2010)

  12. #9
    Join Date
    Mar 2010
    Location
    Pacific Northwest
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    No declaration in the <head> section was called for in the instructions for the script, so I was unaware of the need...and if you look at the source for the page http://www.todaystruth.com/Mags.htm it doesn't have it either. I copied and pasted the code from DD. But it works for my page online, and on my PC for that same page, but not for my new page. Do I need to scrap the whole thing and use a NEW script for the DropDown Menu?
    Last edited by Woody56; 03-05-2010 at 09:22 PM.

  13. #10
    Join Date
    Mar 2010
    Posts
    14
    Thanks
    1
    Thanked 5 Times in 5 Posts

    Default

    I don't think you need the call. I believe removing line 26 that says:

    Code:
    <script language="JavaScript1.2">mmLoadMenus();</script>
    will solve your problem. If it doesn't, post back here, and I'll try to help again.

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
  •