Advertisement

Menu Bar & Context Menu Problem

Moderators: Calcifer, slothy

Menu Bar & Context Menu Problem

Postby Yargic » Tue May 22, 2007 10:57 am

Hi all,
I use context menu and menu bar in the same page. But when i click menu bar or child's after that context menu and menu bar not appear properly.
What can i do?

Code part is here.

/* Only one contextMenu object per page */
var contextMenu = new DHTMLSuite.contextMenu();
DHTMLSuite.commonObj.setCssCacheStatus(false);
contextMenu.setWidth(130);
contextMenu.attachToElement(false,'div1',menuModel);
contextMenu.attachToElement(false,'div2',menuModel2);
contextMenu.attachToElement(false,'div3',menuModel4);

/* Fifth menu - created fro markup */
var menuModel5 = new DHTMLSuite.menuModel();
menuModel5.addItemsFromMarkup('menuModel5');
menuModel5.init();

var menuBar2 = new DHTMLSuite.menuBar();
menuBar2.addMenuItems(menuModel5);
menuBar2.setTarget("MainMenu");
menuBar2.init();
Yargic
 
Posts: 2
Joined: Tue May 01, 2007 7:38 pm

Return to Menu script questions

Who is online

Users browsing this forum: No registered users and 7 guests

cron