Results 1 to 6 of 6

Thread: AnyLink JS Drop Down Menu v2.0- LINK PROBLEM

  1. #1
    Join Date
    Apr 2010
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default AnyLink JS Drop Down Menu v2.0- LINK PROBLEM

    1) Script Title: mencontent.js

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

    3) Describe problem: I have created a drop down menu using anylinkmenu.js
    Here is an example of part of it:

    var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''} //First menu variable. Make sure "anylinkmenu1" is a unique name!
    anylinkmenu1.items=[
    ["Easy Climbs", "alpine.html#easy"],
    ["Classic Mountaineering", "alpine.html#classic"],
    ["Harder Routes", "alpine.html#hard"]

    So "Easy Climbs" should go to:
    http://www.alpinism.com/NEW/alpine.html#easy

    Once upon a time I put things in a folder called ALPINISM. This no longer exists and I cannot find it in ANY of the code but for some reason my link always goes to:

    http://www.alpinism.com/New/ALPINISM/alpine.html#easy

    Please help as it is driving me crazy.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    The link that you have directed us to is broken. Please provide a correct link so we can take a look.
    Jeremy | jfein.net

  3. #3
    Join Date
    Apr 2010
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    please look at the drop down menu on
    http://www.alpinism.com/New/index.html

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    LINE 166 in anylinkmenu.js (highlighted)
    Code:
    	for (var i=0; i<menuobj.items.length; i++){
    		frag+='<li><a href="ALPINISM/' + menuobj.items[i][1] + '" target="' + menuobj.linktarget + '">' + menuobj.items[i][0] + '</a></li>\n'
    		if (menuobj.items[i][2]=="efc" || i==menuobj.items.length-1){
    Get rid of the red.

    Good luck! Respond back with results

    BTW - Look at the top right:
    Last edited by Nile; 11-02-2010 at 01:03 AM.
    Jeremy | jfein.net

  5. #5
    Join Date
    Apr 2010
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you. When I deleted the word in red the menu stopped working altogether. But then I just downloaded anylinkmenu.js again from your website and reloaded it and it works! Yahoo. Thanks for your help.

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    No problem, I'm glad to help.

    Here on DD, we like to keep things organized. In an effort to do so, you have the option to set a thread to resolved when an issue is fixed. To make the status of the thread resolved:
    1. Go to your first post
    2. Edit your first post
    3. Click "Go Advanced"
    4. In the dropdown next to the title, select "RESOLVED"
    Jeremy | jfein.net

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
  •