Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shashipkiran

macrumors newbie
Original poster
Oct 29, 2008
3
0
Hello

I am using mm_menu.js in my application. My menu is a editable one, means user can have the menu according to his choice eg(he can operate the menu using onClick or onMouseOver)...

Now with onClick.....
If a user clicks a particular menu, it will display the child menus.

The problem is if a child menu has some more sub-menus, the program is displaying all those onMouseOver. I want these to be displayed only if i am clicking their parent menus.....

Please help......
 

shashipkiran

macrumors newbie
Original poster
Oct 29, 2008
3
0
This is how i am adding the menus and child menus in my js file..........

window.mm_menu_0623135119_0_2 = new Menu("hepatitis",190,19,"Verdana,
Arial, Helvetica,
sans-serif",11,"#333399","#000033","#CCCCFF","#E8E8E8","left","middle",4,0, 400,-5,7,true,false,true,0,true,true);
mm_menu_0623135119_0_2.addMenuItem("glossary","location='glossary.php'");
mm_menu_0623135119_0_2.addMenuItem("injection tips","location='dis_hep _itips.php'");
mm_menu_0623135119_0_2.addMenuItem("kids infect kids","location=' im_kik.php'");
mm_menu_0623135119_0_2.addMenuItem("labs","location='dis_hep_labs.php'");
mm_menu_0623135119_0_2.addMenuItem("links & resources","location= 'dis_hep_lr.php'");
mm_menu_0623135119_0_2.addMenuItem("milk thistle","window.open('pdf/mi lkthistle.pdf',
'_blank');");
mm_menu_0623135119_0_2.addMenuItem("pediatric hepatitis report"," location='dis_hep_phr.php'");
mm_menu_0623135119_0_2.addMenuItem("someone you know has&nbs p;hbv","window.open('pdf/syk_hbv.pdf',
'_blank');");
mm_menu_0623135119_0_2.addMenuItem("someone you know has&nbs p;hcv","window.open('pdf/syk_hcv.pdf',
'_blank');");
mm_menu_0623135119_0_2.hideOnMouseOut=true;
mm_menu_0623135119_0_2.bgColor='#999999';
mm_menu_0623135119_0_2.menuBorder=1;
mm_menu_0623135119_0_2.menuLiteBgColor='#FFFFFF';
mm_menu_0623135119_0_2.menuBorderBgColor='#FFFFFF';

Can you please tell me as to how to track a click in the above sub menus..............
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.