User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 361,942 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,678 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 542 | Replies: 3 | Solved
Reply
Join Date: Mar 2008
Posts: 2
Reputation: ikedachun721 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ikedachun721 ikedachun721 is offline Offline
Newbie Poster

designer seeking help with javascript menu

  #1  
Mar 26th, 2008
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?

  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);
  mm_menu_0623105927_3.addMenuItem("FORMS & APPLICATIONS","window.open('downloads/forms.htm', '_self');");
  mm_menu_0623105927_3.addMenuItem("MEDIA","window.open('downloads/media.htm', '_self');");
   mm_menu_0623105927_3.hideOnMouseOut=true;
   mm_menu_0623105927_3.menuBorder=0;
   mm_menu_0623105927_3.menuLiteBgColor='#ffffff';
   mm_menu_0623105927_3.menuBorderBgColor='#ffffff';
   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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Posts: 163
Reputation: Traicey is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 16
Traicey's Avatar
Traicey Traicey is offline Offline
Junior Poster

Re: designer seeking help with javascript menu

  #2  
Mar 27th, 2008
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

  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';
  9.  
Reply With Quote  
Join Date: Mar 2008
Posts: 2
Reputation: ikedachun721 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ikedachun721 ikedachun721 is offline Offline
Newbie Poster

Re: designer seeking help with javascript menu

  #3  
Mar 27th, 2008
Thank you. It worked!
Reply With Quote  
Join Date: Mar 2008
Posts: 163
Reputation: Traicey is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 16
Traicey's Avatar
Traicey Traicey is offline Offline
Junior Poster

Re: designer seeking help with javascript menu

  #4  
Mar 28th, 2008
Anytime... U can mark it as solved now
Some people get so rich they lose all respect for humanity. That's how rich I want to be.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 11:36 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC