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:27
highlight only seleced items not the menue link
Poster: superkater
Dated: Thursday October 27 2005 - 15:10:42 BST
hello,
yesterday i've purchased a new menue..
now i have one little question...
i have an menue like this:
Code:
-home url:index.htm
-page1 url:page1.htm
|---subpage1a url=subpage1a.htm
|---subpage1b url=subpage1b.htm
|---subpage1c url=subpage1c.htm
-page2 url=page2.htm
-page1 url:page1.htm
|---subpage1a url=subpage1a.htm
|---subpage1b url=subpage1b.htm
|---subpage1c url=subpage1c.htm
-page2 url=page2.htm
when i go with my mouse over page1 and then to subpage1b
subpage1b (is OK) and page1 ( is not OK) are higlighted!!!
how can i change that page1 is highlighted wenn i'am on a subpage ?
only the page where i'am and where i'am with mousover shuld be highlighted
best regards
superkater
Code:
Poster: Andy
Dated: Friday October 28 2005 - 13:10:57 BST
Hi,
My guess is that you need to declare some pagematch colors but without actually seeing your menu cannot say for sure.
If you can give us a URL of where the menu is, I'll be able to say for sure what the problem/solution is.
Cheers,
Andy
Poster: superkater
Dated: Friday October 28 2005 - 15:55:13 BST
hi andy,
here is the URL
http://gast:serfas __at__ www.testbereich.stb-serfas.com
this is my menu_data:
Code:
fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
with(menuStyle=new mm_style()){
fontfamily="Verdana, Tahoma, Arial";
fontsize="11px";
fontstyle="normal";
offbgcolor="#999999";
offcolor="#FFFFFF";
onbgcolor="#999999";
oncolor="#000000";
pagebgcolor="#999999";
pagecolor="#000000";
padding=4;
separatorcolor="#999999";
separatorwidth=30;
}
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=110;
orientation="horizontal";
style=menuStyle;
top=100;
aI("text=Home;url=index.php");
aI("text=Wir für Sie;url=ueberuns.php");
aI("text=Leistungen;url=leistungen.php;showmenu=Leistungen;");
aI("text=Infothek;url=infothek.php;");
aI("showmenu=Kontakt;text=Kontakt;url=kontakt.php;");
aI("showmenu=Impressum;url=impressum.php;text=Impressum;");
aI("text=Inhalt;url=inhalt.php");
}
with(milonic=new menuname("Leistungen")){
style=menuStyle;
aI("text=Steuerberatung;url=steuerberatung.php;")
aI("text=Rechnungswesen;url=rechnungswesen.php;")
aI("text=Unternehmensberatung;url=unternehmensberatung.php;")
aI("text=Treuhandwesen;url=treuhandwesen.php;")
}
with(milonic=new menuname("Kontakt")){
style=menuStyle;
aI("text=Anfahrt;url=anfahrt.php");
aI("text=Berater;url=berater.php;");
}
with(milonic=new menuname("Impressum")){
style=menuStyle;
aI("text=Datenschutz;url=datenschutz.php;");
}
drawMenus();
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
with(menuStyle=new mm_style()){
fontfamily="Verdana, Tahoma, Arial";
fontsize="11px";
fontstyle="normal";
offbgcolor="#999999";
offcolor="#FFFFFF";
onbgcolor="#999999";
oncolor="#000000";
pagebgcolor="#999999";
pagecolor="#000000";
padding=4;
separatorcolor="#999999";
separatorwidth=30;
}
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=110;
orientation="horizontal";
style=menuStyle;
top=100;
aI("text=Home;url=index.php");
aI("text=Wir für Sie;url=ueberuns.php");
aI("text=Leistungen;url=leistungen.php;showmenu=Leistungen;");
aI("text=Infothek;url=infothek.php;");
aI("showmenu=Kontakt;text=Kontakt;url=kontakt.php;");
aI("showmenu=Impressum;url=impressum.php;text=Impressum;");
aI("text=Inhalt;url=inhalt.php");
}
with(milonic=new menuname("Leistungen")){
style=menuStyle;
aI("text=Steuerberatung;url=steuerberatung.php;")
aI("text=Rechnungswesen;url=rechnungswesen.php;")
aI("text=Unternehmensberatung;url=unternehmensberatung.php;")
aI("text=Treuhandwesen;url=treuhandwesen.php;")
}
with(milonic=new menuname("Kontakt")){
style=menuStyle;
aI("text=Anfahrt;url=anfahrt.php");
aI("text=Berater;url=berater.php;");
}
with(milonic=new menuname("Impressum")){
style=menuStyle;
aI("text=Datenschutz;url=datenschutz.php;");
}
drawMenus();
hope you can help me...
cheers
sk
Poster: superkater
Dated: Wednesday November 2 2005 - 9:52:15 GMT
hi andy, hi folks,
any idea how i can change the menue link highlighting ?
cheers
sk
Poster: superkater
Dated: Tuesday November 8 2005 - 13:54:39 GMT
hello guys,
can no one help me ?
when i click on the subpage "Rechnungswesen" only this menu entry shuld be highlighted!!!
now the subpage and the main menu "Leistungen" is highlighted when i click on a subpage like "Rechnungswesen"....
hope someone can help me....
best regards
sk
Poster: Ruth
Dated: Tuesday November 8 2005 - 14:54:58 GMT
Hi sk,
Pagebgcolor and pagecolor are the properties which show the 'breadcrumb' i.e. where you are in the menu. Since you have those declared in the style they will apply to all items in the 'active' path. Try removing those from the menuStyle and place them in the items you want to show highlighting and see if that works.
Code:
aI("text=Rechnungswesen;url=rechnungswesen.php;pagecolor=#000033;")
Also, if you want all of them to have the pagecolor when they are clicked, you probably need to put it into each aI string for every page.
I think that should work. If it highlights all the way back [which I don't think it should] try adding pagematch=http:// page url to the aI string also.
Ruth
Poster: superkater
Dated: Tuesday November 8 2005 - 17:35:51 GMT
hi ruth,
Ruth wrote:
Pagebgcolor and pagecolor are the properties which show the 'breadcrumb' i.e. where you are in the menu. Since you have those declared in the style they will apply to all items in the 'active' path. Try removing those from the menuStyle and place them in the items you want to show highlighting and see if that works.
This is the problem i don't want the 'breadcrumb'.
The menu shuld only highlight the page where i'am and not the active path. Where can i disable this ?
best regards
sk
Poster: Ruth
Dated: Tuesday November 8 2005 - 21:41:03 GMT
I have posted a question to Milonic and will post back here when I get a response, since I haven't been able to figure out how you partially disable page highlighting.
Ruth
Poster: superkater
Dated: Wednesday November 16 2005 - 9:25:02 GMT
hi ruth, hi andy, hi all,
do you now have some ideas how i can disable the 'breadcrumb' highlighting ?
best regards
sk
Poster: Ruth
Dated: Wednesday November 16 2005 - 15:37:30 GMT
Hi sk,
I am still trying to find something. You might try contacting Milonic asking how to only match the item that is clicked and not the full path when using pagecolor.
Ruth
Poster: superkater
Dated: Wednesday November 16 2005 - 15:47:01 GMT
hi Ruth,
Ruth wrote:
You might try contacting Milonic asking how to only match the item that is clicked and not the full path when using pagecolor.
how can i contact Milonic ? do you have some contact data?
best regards
sk
Poster: Ruth
Dated: Wednesday November 16 2005 - 17:01:35 GMT
Hi,
When you purchased the menu there should have been some information provided you about contacting Milonic.
Ruth
Poster: Andy
Dated: Friday November 18 2005 - 10:50:31 GMT
Hi,
I think I've finally grasped what you need.
I've added a new property called disablePagePath to the Pre Release version of the menu (this will be released soon) that will hopefully give you the required functionality.
Please download the Pre Release version of the menu from http://www.milonic.com/menuvinfo.php and also add the following to the top of your menu_data.js file:
disablePagePath=true;
Hope this helps
Milonic Support