Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:06
Highliting tree again
Poster: janusz
Dated: Tuesday October 19 2004 - 16:04:31 BST
Hi, i have the same troubles with highliting of my main menu.
Pagematch works, but only when an url is inside the main menu. I want the submenu to be displayed onclick (openclick=true). So if i click on my main menu it opens not the submenu but the url ...
Thank you for help and sorry about my english
Janusz
Poster: janusz
Dated: Tuesday October 19 2004 - 16:54:43 BST
Janusz again,
i think some source code may be helpfull:
first one global:
Code:
with(menuStyle=new mm_style()){
openonclick=true;
onbgcolor="#ff6600";
oncolor="#ffffff";
offbgcolor="#990000";
offcolor="#ffffff";
pagecolor="#ffffcc";
pagebgcolor="#ff66aa";
headercolor="#000000";
headerbgcolor="ffffff";
bordercolor="#296488";
borderstyle="none";
openonclick=true;
onbgcolor="#ff6600";
oncolor="#ffffff";
offbgcolor="#990000";
offcolor="#ffffff";
pagecolor="#ffffcc";
pagebgcolor="#ff66aa";
headercolor="#000000";
headerbgcolor="ffffff";
bordercolor="#296488";
borderstyle="none";
next for main Menu :
Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
overfilter="Fade(duration=0.0);Alpha(opacity=100);Shadow(color='#ffffff', Direction=235, Strength=1)";
outfilter="randomdissolve(duration=0.0)";
offbgcolor="#999900";
offcolor="#ffffff";
menuwidth="800px";
itemheight="25px";
itemwidth="100px";
top=40;
left=0;
alwaysvisible=1;
orientation="horizontal";
pagecolor="#aaeecc";
pagebgcolor="#ccddaa";
aI("text=RegistrierungsManager;showmenu=RegistrierungsManager;url=index.php?action=registrierungsmanager&step=uebersicht;pagematch=index.php?action=registrierungsmanager;");
aI("text=ListenManager;showmenu=ListenManager;pagematch=index?action=listenmanager;");
}
borderwidth=0;
}
style=menuStyle;
overfilter="Fade(duration=0.0);Alpha(opacity=100);Shadow(color='#ffffff', Direction=235, Strength=1)";
outfilter="randomdissolve(duration=0.0)";
offbgcolor="#999900";
offcolor="#ffffff";
menuwidth="800px";
itemheight="25px";
itemwidth="100px";
top=40;
left=0;
alwaysvisible=1;
orientation="horizontal";
pagecolor="#aaeecc";
pagebgcolor="#ccddaa";
aI("text=RegistrierungsManager;showmenu=RegistrierungsManager;url=index.php?action=registrierungsmanager&step=uebersicht;pagematch=index.php?action=registrierungsmanager;");
aI("text=ListenManager;showmenu=ListenManager;pagematch=index?action=listenmanager;");
}
borderwidth=0;
}
last one for Submenu:
Code:
with(verticalStyle=new mm_style()){
padding=5;
onbgcolor="#ff6600";
oncolor="#ffffff";
offbgcolor="#990000";
offcolor="#ffffff";
bordercolor="#296488";
borderstyle="none";
fontsize="100%";
fontstyle="normal";
fontweight="bold";
fontfamily="Arial, Verdana, Tahoma";
separatorsize=1;
separatorcolor="#ffffff";
overfilter="Fade(duration=0.0);Alpha(opacity=100);Shadow(color='#ffffff', Direction=135, Strength=1)";
outfilter="randomdissolve(duration=0.0)";
}
padding=5;
onbgcolor="#ff6600";
oncolor="#ffffff";
offbgcolor="#990000";
offcolor="#ffffff";
bordercolor="#296488";
borderstyle="none";
fontsize="100%";
fontstyle="normal";
fontweight="bold";
fontfamily="Arial, Verdana, Tahoma";
separatorsize=1;
separatorcolor="#ffffff";
overfilter="Fade(duration=0.0);Alpha(opacity=100);Shadow(color='#ffffff', Direction=135, Strength=1)";
outfilter="randomdissolve(duration=0.0)";
}
If i click on main Menu "RegistrierungsManager" highlighting works great. But no more for "ListenManager" which uses an submenu:
Code:
with(milonic=new menuname("ListenManager")){
style=verticalStyle;
itemwidth="110px";
keepalive="true";
aI("text=Datenimport;url=index.php?action=listenmanager&sub=datenimport&step=quelleauswaehlen;status=Datenimport;");
aI("text=Datenexport;url=index.php?action=listenmanager&sub=datenexport&step=userliste;status=Datenexport;");
aI("text=Profil Erstellung;url=index.php?action=listenmanager&sub=profilerstellung&step=uebersicht;status=Profil Erstellung;");}
style=verticalStyle;
itemwidth="110px";
keepalive="true";
aI("text=Datenimport;url=index.php?action=listenmanager&sub=datenimport&step=quelleauswaehlen;status=Datenimport;");
aI("text=Datenexport;url=index.php?action=listenmanager&sub=datenexport&step=userliste;status=Datenexport;");
aI("text=Profil Erstellung;url=index.php?action=listenmanager&sub=profilerstellung&step=uebersicht;status=Profil Erstellung;");}
i cannot post the URL, sorry. Thank you for help