Board Logo

CSS and variable multiple menu
bernard56 - 9/28/2004 at 08:31 AM

Hello,

I have a site with two mode of browsing. So in one case i have only one menu and on the other mode, i have two.

When i have two menus on my page (admin mode) all is ok. The menus use two different css the first one use a pattern like .m01.... and the second one .m11.....
in the page the menus are declared like this

new menu (MENU_ITEMS0, MENU_POS0);
/........... /
new menu (MENU_ITEMS1, MENU_POS1);

The menu0 is the admin menu and the menu1 is the user menu.


When i switch in the other mode (user mode) of browsing with only one menu on my page (menu1) the css is not use by the menu.

I understand that the js script is clever enought to detect how many menu are on the page so the script search the css with a pattern .m01 and in my case the css are declared .m11.

My question is : Is it possible to force a menu to use a specific css pattern ?
Or if not is there anu workaround to do this

Thank you by advance and 'bravo' for your great product.


tigra - 9/28/2004 at 05:36 PM

In your case just change the order menus are initialized in:

new menu (MENU_ITEMS1, MENU_POS1);
/........... /
new menu (MENU_ITEMS0, MENU_POS0);

and rename css classes accordingly .m0->.m1 .m1->.m0


bernard56 - 9/29/2004 at 08:05 AM

Thank you, it was so simple... excuse me


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/