Results 1 to 3 of 3

Thread: AnyLink JS Drop Down Menu v2.2

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

    Post AnyLink JS Drop Down Menu v2.2

    1) Script Title: :: AnyLink JS Drop Down Menu v2.2

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

    3)Describe problem: Multiple drop down menus wont appear, the first menu "itemsmenu01" works and drops down fine, but the rest wont work.

    i am new to javascript, but have years experience with other languages, i understand the concept and common sense of most scripts but i just dont understand what i am doing wrong here. I have fiddled with the script for the past 5 hours, ensuring everything is correct.

    menucontents.js
    Code:
    var itemmenu01={divclass:'anylinkmenu', inlinestyle:'', linktarget:''}
    itemmenu01.items=[
    	["God Items", "gitems.php"],
    	["Server Items", "sitems.php"],
    	["Set items", "stitems.php"],
    	["Crew Quest items", "cqitems.php"],
    	["Search Items", "seritems.php"]
    ]
    
    
    var playermenu02={divclass:'anylinkmenu', inlinestyle:'', linktarget:''}
    playermenu02.items=[
    	["Skill Data", "sdata.php"],
    	["Level Chart", "lchart.php"],
    	["Item Comparison", "itemcomp.php"],
    	["Gem Calculator", "gemcalc.php"],
    	["Stat Calculator", "statcalc.php"]
    	["Player Stats", "plastats.php"],
    	["Player Builder", "plabuild.php"],
    	["Time Frames", "tframes.php"]
    ]
    
    
    var raidmenu03={divclass:'anylinkmenu', inlinestyle:'', linktarget:''}
    raidmenu03.items=[
    	["God Raids", ""],
    	["Set Raids", ""],
    	["Crew Quest Raids", ""],
    	["Search Raids", ""]
    ]
    
    
    var mapsmenu04={divclass:'anylinkmenu', inlinestyle:'', linktarget:''}
    mapsmenu04.items=[
    	["God Items", ""],
    	["Server Items", ""],
    	["Set items", ""],
    	["Crew Quest items", ""],
    	["Search Items", ""]
    ]
    
    
    var guidemenu05={divclass:'anylinkmenu', inlinestyle:'', linktarget:''}
    guidemenu05.items=[
    	["God Items", ""],
    	["Server Items", ""],
    	["Set items", ""],
    	["Crew Quest items", ""],
    	["Search Items", ""]
    ]
    Index Links
    Code:
    <table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/blackline.gif">
      <tr>
        <td width="100%"><font color="#FFFFFF" face="Arial" size="2"><b>&nbsp;&nbsp;|&nbsp;&nbsp;
    	<a href="index.php" >Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;
    	<a href="items.php" class="menuanchorclass" rel="itemmenu01">Items</a>&nbsp;&nbsp;|&nbsp;&nbsp;
    	<a href="players.php" class="menuanchorclass" rel="playermenu02">Players</a>&nbsp;&nbsp;|&nbsp;&nbsp;
    	<a href="raiddata.php" class="menuanchorclass" rel="raidmenu03">Raid Data</a>&nbsp;&nbsp;|&nbsp;&nbsp;
    	<a href="maps.php" class="menuanchorclass" rel="mapsmenu04">Maps</a>&nbsp;&nbsp;|&nbsp;&nbsp;
    	<a href="guides.php" class="menuanchorclass" rel="guidemenu05">Guides</a>&nbsp;&nbsp;|&nbsp;&nbsp;
    	<a href="contact.php" >Contact</a>&nbsp;&nbsp;|
        </b></font></td></tr></table>
    As you can tell all the "vars" match, and the first menu in the JS file works.
    The site is in beta and not hosted or uploaded at the moment since all that is complete is the head of the site, all work is done through Dreamweaver with Firefox to debug.

    I also searched these forums and found some information about AnyLink JS Drop Down Menu v2.2 but none to solve my issue.
    I noticed i posted this in the wrong section, it belongs in the "Dynamic Drive scripts help" section.

    Mike
    Last edited by miketike2; 03-05-2010 at 11:17 PM.

  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

    Missing comma (here added in red):

    Code:
    var playermenu02={divclass:'anylinkmenu', inlinestyle:'', linktarget:''}
    playermenu02.items=[
    	["Skill Data", "sdata.php"],
    	["Level Chart", "lchart.php"],
    	["Item Comparison", "itemcomp.php"],
    	["Gem Calculator", "gemcalc.php"],
    	["Stat Calculator", "statcalc.php"],
    	["Player Stats", "plastats.php"],
    	["Player Builder", "plabuild.php"],
    	["Time Frames", "tframes.php"]
    ]
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    miketike2 (03-06-2010)

  4. #3
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post

    Thank You so much, i added the comma and it Totally fixed the problem.

    Mike

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
  •