Log in

View Full Version : mmenu javascript menu dropdown help needed!!



fastflagsrt4
06-27-2006, 02:18 PM
I am in need of some help to get a drop down link to open in a new window...

Here is a code snippet from the javascript I am messing with, I have seen this on MANY websites, but never see anyone open a new window with it.

--------------
window.mm_menu_0307152336_0 = new Menu("root",150,17,"Verdana, Arial, Helvetica, sans-serif",10,"#FFFFFF","#000000","#9c9c9c","#e7e7e7","left","middle",3,0,400,-5,7,true,true,true,0,true,true);
mm_menu_0307152336_0.addMenuItem("2006 Annual Meeting","location='http://www.cytokineresearch.com/2006/'");
mm_menu_0307152336_0.addMenuItem("Past Meetings","location='../pages/page3b.htm'");
mm_menu_0307152336_0.fontWeight="bold";
mm_menu_0307152336_0.hideOnMouseOut=true;
mm_menu_0307152336_0.bgColor='#333333';
mm_menu_0307152336_0.menuBorder=1;
mm_menu_0307152336_0.menuLiteBgColor='#FFFFFF';
mm_menu_0307152336_0.menuBorderBgColor='#9E8659';
--------------

I would like to open the link in red in a new window... but cant seem 2 figure out how to do it.... Can anyone help me out???

jscheuer1
06-28-2006, 05:21 AM
These menus can be tricky because what each one can do depends upon their coding and what you have shown here appears only to be the configuration. However, if it can be done easily, this is how to do it:


mm_menu_0307152336_0.addMenuItem("2006 Annual Meeting","window.open('http://www.cytokineresearch.com/2006/')");

fastflagsrt4
06-28-2006, 12:12 PM
John... Thanks!!!!