Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-08-2011, 01:22 AM   PM User | #1
zoobs
New Coder

 
Join Date: Jun 2011
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
zoobs is an unknown quantity at this point
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!!!!!!!
zoobs is offline   Reply With Quote
Old 06-09-2011, 03:03 AM   PM User | #2
ohbigrighthand
Regular Coder

 
Join Date: Apr 2010
Posts: 102
Thanks: 2
Thanked 15 Times in 15 Posts
ohbigrighthand is an unknown quantity at this point
I could probably help if you gave me the link to the page in question.
ohbigrighthand is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:44 PM.


Advertisement
Log in to turn off these ads.