Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2011
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    javascript navigation HELP!

    I just started working on a new client's website and one of my first obstacles to tackle is adding a "new art" button along the navigation menu at the top. (for reference the url to the navigation is this: http://www.thejam2.com/two/)

    I can't seem to get a new "New Art" button and I've tried copying what the previous webmaster has...how the heck do I add a new button? Here is the code below:

    ------------------------------------------------------------------

    menuImage = {};
    function makeMenu(){
    var imgs = ["thejam","theartist","viewit","orderit","theCollage","theBorder","detailedImages","theMusicians"];
    for(i in imgs){
    menuImage[imgs[i]+"off"] = new Image();
    menuImage[imgs[i]+"off"].src = "pics/menu_"+imgs[i]+".gif";
    menuImage[imgs[i]+"on"] = new Image();
    menuImage[imgs[i]+"on"].src = "pics/menu_"+imgs[i]+"_on.gif";
    }
    document.write('<div id="menu"><table width="'+((ns4) ? 794 : '100%')+'" cellpadding=0 cellspacing=0 border=0>');
    if(ns4) document.write('<tr><td><img src="pics/spacer.gif" width="418" height="1"></td><td><img src="pics/spacer.gif" width="94" height="1"></td><td><img src="pics/spacer.gif" width="94" height="1"></td><td><img src="pics/spacer.gif" width="94" height="1"></td><td><img src="pics/spacer.gif" width="94" height="1"></td></tr>');
    document.write('<tr><td width="100%">&nbsp;</td>');
    document.write('<td width="94" background="pics/button_starBig.gif" width="75">' + makeButton('bios.php?artist=about','thejam','jamMenu') + '<br></td>');
    document.write('<td width="94" background="pics/button_guitarBig.gif" width="75">' + makeButton('bios.php?artist=mike_keirstead','theartist') + '</td>');
    document.write('<td width="94" background="pics/button_starBig.gif" width="75">' + makeButton('jam2.php','viewit','viewMenu') + '</td>');
    document.write('<td width="94" background="pics/button_guitarBig.gif" width="75">' + makeButton('jam2.php?loc=order','orderit') + '</td></tr>');
    document.write('<tr><td>&nbsp;</td><td>');
    makeJamMenu();
    document.write('</td><td colspan="3" align="center">');
    makeViewMenu();
    document.write('</td></tr></table></div>');
    }

    ----------------------------------------------------------------------------

    Any help would be GREATLY APPRECIATED!!!!!!!

  • #2
    Regular Coder
    Join Date
    Apr 2010
    Posts
    103
    Thanks
    2
    Thanked 15 Times in 15 Posts
    I could probably help if you gave me the link to the page in question.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •