943,833 Members | Top Members by Rank

Ad:
Mar 26th, 2008
0

designer seeking help with javascript menu

Expand Post »
I'm a graphic designer with very little HTML knowledge who has inherited the maintenance of non-profit agency's website. They have javascript drop-down menus as the part of their main navigation. Up until now, I've only had to change the text or change the size of the menus. But now, they've asked me to add a new menu to one of the buttons. I was hoping it would be simple "copy & paste" of the following code to create a new menu but I've tried it and it is isn't working. My guess is that it has something to do with the 'mm_menu_0623105927_3' but I really have no idea. Can someone shed some light?

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. window.mm_menu_0623105927_3 = new Menu("root",140,24,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#ff9900","#ffc700","left","middle",5,0,1000,1,-1,true,false,true,0,false,true);
  2. mm_menu_0623105927_3.addMenuItem("FORMS & APPLICATIONS","window.open('downloads/forms.htm', '_self');");
  3. mm_menu_0623105927_3.addMenuItem("MEDIA","window.open('downloads/media.htm', '_self');");
  4. mm_menu_0623105927_3.hideOnMouseOut=true;
  5. mm_menu_0623105927_3.menuBorder=0;
  6. mm_menu_0623105927_3.menuLiteBgColor='#ffffff';
  7. mm_menu_0623105927_3.menuBorderBgColor='#ffffff';
  8. mm_menu_0623105927_3.bgColor='#ffffff';

The live site is at http://www.jcyc.org.
(They want me to add a menu to the 'Contact Us' button)

Thank you in advance.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ikedachun721 is offline Offline
2 posts
since Mar 2008
Mar 27th, 2008
0

Re: designer seeking help with javascript menu

I assume that u have ur if statement and return function to where ever site ur editing,

What I suggest u do for now is to change the last digit of ur submenu\MenuItem.... That is (eg.) in ur case if the last digit of downloads is 3 then for contact us u changed it to 4

U can try this and see if its gona work

HTML Syntax (Toggle Plain Text)
  1. window.mm_menu_0623105927_4 = new Menu("root",140,24,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#ff9900","#ffc700","left","middle",5,0,1000,1,-1,true,false,true,0,false,true);
  2. mm_menu_0623105927_4.addMenuItem("The menu u want to add","window.open('Contact Us/forms.htm', '_self');");
  3.  
  4. mm_menu_0623105927_4.hideOnMouseOut=true;
  5. mm_menu_0623105927_4.menuBorder=0;
  6. mm_menu_0623105927_4.menuLiteBgColor='#ffffff';
  7. mm_menu_0623105927_4.menuBorderBgColor='#ffffff';
  8. mm_menu_0623105927_4.bgColor='#ffffff';
Reputation Points: 26
Solved Threads: 19
Posting Whiz in Training
Traicey is offline Offline
283 posts
since Mar 2008
Mar 28th, 2008
0

Re: designer seeking help with javascript menu

Thank you. It worked!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ikedachun721 is offline Offline
2 posts
since Mar 2008
Mar 28th, 2008
0

Re: designer seeking help with javascript menu

Anytime... U can mark it as solved now
Reputation Points: 26
Solved Threads: 19
Posting Whiz in Training
Traicey is offline Offline
283 posts
since Mar 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: selecting html table row for deletion
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Company Merchandise Order Form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC