we have a problem with a menu on:
http://bzwk.steindev.de/start.html
first:
the submenu schould stay open if the mainmenu-item is activated or a submenu-item is activated.
second:
if a submenu is activated and open and you "mouseover" an other, not activated mainmenu-item, the appertaining submenu-items should been displayed.
our menu is dynamically generated from a database, so some parts (for the active menu-items) are generated dynamically. the stuff in the curly brackets are variable.
Code: Select all
aI("{CONF_STR}{IF_ACTIVE_EXISTS}");
}
and:
var yactive = getMenuByName('{NAME}');
menuDisplay(yactive, 1);
example:
Code: Select all
with(milonic=new menuname("x")){
left=25;
top=120;
zindex=999;
alwaysvisible=1;
position="absolute";
orientation="horizontal";
style=stylex;
aI("showmenu=y0;text=Zeitwertkonto;url=../../web/zeitwertkonto/prinzip.html;offcolor=#000;offcolor=#000;");
aI("showmenu=y1;text=Unser Profil;url=../../web/profil/unternehmen.html;onfunction=menuDisplay( yactive, 0 );offfunction=itemOn( yactive, 1 );");
aI("showmenu=y2;text=Vorteile;url=../../web/vorteile/arbeitnehmer.html;onfunction=menuDisplay( yactive, 0 );offfunction=itemOn( yactive, 1 );");
aI("text=Karriere;url=../../web/karriere.html;onfunction=menuDisplay( yactive, 0 );offfunction=itemOn( yactive, 1 );");
aI("text=Anfragen;url=../../contact.html;onfunction=menuDisplay( yactive, 0 );offfunction=itemOn( yactive, 1 );");
aI("showmenu=y5;text=Service;url=../../web/service/downloads.html;onfunction=menuDisplay( yactive, 0 );offfunction=itemOn( yactive, 1 );");
}
with(milonic=new menuname("y0")){
orientation="horizontal";
style=styley;
aI("text=Das Prinzip;url=../../web/zeitwertkonto/prinzip.html;offcolor=#000;");
aI("text=Vorraussetzungen;url=../../web/zeitwertkonto/vorraussetzungen.html;");
aI("text=Die Chancen;url=../../web/zeitwertkonto/chancen.html;");
aI("text=Infos für Steuerberater;url=../../web/zeitwertkonto/infos-fuer-steuerberater.html;");
aI("text=Praxis-Tipps;url=../../web/zeitwertkonto/praxis-tipps.html;");
}
with(milonic=new menuname("y1")){
orientation="horizontal";
style=styley;
aI("text=Unternehmen;url=../../web/profil/unternehmen.html;onfunction=menuDisplay( yactive, 0 );offfunction=itemOn( yactive, 1 );");
aI("text=Leistungen;url=../../web/profil/leistungen.html;onfunction=menuDisplay( yactive, 0 );offfunction=itemOn( yactive, 1 );");
aI("text=ALCONTAS Gruppe;url=../../web/profil/alcontas-gruppe.html;onfunction=menuDisplay( yactive, 0 );offfunction=itemOn( yactive, 1 );");
}
.........
drawMenus();
var yactive = getMenuByName('y0');
menuDisplay(yactive, 1);
I hope you understand my english
