| | |
designer seeking help with javascript menu
Please support our JavaScript / DHTML / AJAX advertiser: 50% off 6 Months Dedicated Server Hosting from 1&1!
Thread Solved |
•
•
Join Date: Mar 2008
Posts: 2
Reputation:
Solved Threads: 0
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?
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.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
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.
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
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)
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); mm_menu_0623105927_4.addMenuItem("The menu u want to add","window.open('Contact Us/forms.htm', '_self');"); mm_menu_0623105927_4.hideOnMouseOut=true; mm_menu_0623105927_4.menuBorder=0; mm_menu_0623105927_4.menuLiteBgColor='#ffffff'; mm_menu_0623105927_4.menuBorderBgColor='#ffffff'; mm_menu_0623105927_4.bgColor='#ffffff';
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: selecting html table row for deletion
- Next Thread: Company Merchandise Order Form
Views: 908 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
8 ad ajax ajaxcode ajaxhelp ajaxjspservlets animate api array asp asp.net autoplay box boxes bug captchaformproblem catch close code content cookies css date dependent design div dom draganddrop dropdown dynamic element embed error eventhandlers events explorer ext file firefox firehose flash focus font form forms function gears google gxt hide html ie7 iframe image image() internet internet-explorer java javascript javascripts jquery js libcurl lists load maps modal mp4 mysql onclick onmouseover parameters paypal php player position post resize reveal script scroll scrubber search select show simple size smarty source sources text textbox twitter unicode validation variables web webkit window xml





