Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:11

Preventing pagematch highlighting


Poster: georgefky
Dated: Monday March 23 2009 - 23:26:25 GMT

What is the correct way to disable or prevent menu highlighting using pagematch or other parms?

I have only found the following item in the forum pages:

http://www.milonic.com/mfa/2005-May/unw ... hting.html

I did not find an answer to this problem.

Thanks in advance for your help.

Re: Preventing pagematch highlighting


Poster: Andy
Dated: Wednesday March 25 2009 - 9:38:18 GMT

Hi,

Just remove the properties from within the menu styles in your data file.

You can either remove them completely or you can just remark them with //

-- Andy

Re: Preventing pagematch highlighting


Poster: georgefky
Dated: Sunday March 29 2009 - 3:52:58 BST

I am sorry but your post is not helpful !!!!!!! What properties ???????????

Maybe I did not explain my problem enough .... or you did not read my entire post including the link I referenced in my post.

I am trying to prevent a main menu item from being highlighted when the current web page url matched the menu reference !!!!

The "pagematch" parm provides additional ways to do highlighting. I am trying to stop highlighting all together. Is there a way to do this. Please reread my entire first post including the link.

If you need more information I will be more then glad to answer or explain. I really would appreciate some real help.

Thanks again in advance.

George

Re: Preventing pagematch highlighting


Poster: Andy
Dated: Sunday March 29 2009 - 13:07:03 BST

I did read your post and I understand what you require!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Like I said in my original post, you need to remove ALL references to pagematch in your menu styles!!!!!!!!!!!!

Which bit do you no understand??????????????????

If you need better tech support you could try http://www.milonic.com/support/

Re: Preventing pagematch highlighting


Poster: John
Dated: Monday March 30 2009 - 18:06:13 BST

georgefky wrote:
I am sorry but your post is not helpful !!!!!!! What properties ??????????

Actually, the post you quoted in your first message DID answer your question. You just didn't read it closely enough.

Suggestion - chill! Until you do there will be no more help from the volunteers in this forum.

Re: Preventing pagematch highlighting


Poster: Ruth
Dated: Tuesday March 31 2009 - 5:23:00 BST

Hi,

You might post a page for us to see, or if that is not possible, post your menu data file with all its info so we can see it and point out what to take out

Ruth

Re: Preventing pagematch highlighting


Poster: georgefky
Dated: Tuesday March 31 2009 - 15:15:20 BST

Here is the URL of the test site.

http://www.georgefnet.com/test/index.html

Here is the menu data for the home page menu. Please let me know if you need anything else.

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()){
bordercolor="#7EA189";
borderstyle="solid";
borderwidth=0;
fontweight="bold";
fontfamily="Arial, Tahoma, Verdana";
fontsize="10pt";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#7EA189";
offcolor="#ffffff";
onbgcolor="#ffffff";
oncolor="#7EA189";
outfilter="";
// outfilter="randomdissolve(duration=0.3)";
// overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=2;
pagebgcolor="#ffffff";
pagecolor="#7EA189";
separatorcolor="#7EA189";
separatorsize=30;
//subimage="http://img.milonic.com/arrow.gif";
subimagepadding=0;
}

with(menuStyleDropDown=new mm_style()){
bordercolor="#7EA189";
borderstyle="solid";
borderwidth=2;
fontweight="bold";
fontfamily="Arial, Tahoma, Verdana";
fontsize="8pt";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offcolor="#7EA189";
offbgcolor="#ffffff";
oncolor="#ffffff";
onbgcolor="#7EA189";
outfilter="";
// outfilter="randomdissolve(duration=0.3)";
// overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=2;
pagecolor="#ffffff";
pagebgcolor="#7EA189";
separatorcolor="#2D729D";
separatorsize=0;
subimage="http://img.milonic.com/arrow.gif";
subimagepadding=0;
}



with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
top=67;
left=146;
orientation="horizontal";
style=menuStyle;
aI("text=Home;url=http://www.georgefnet.com/test/index.html;");
aI("text=About;url=./html/about.html");
aI("showmenu=Contact_Us;url=./html/Contact_Us.html;text=Contact Us;");
aI("text=Services;url=./html/Services.html;");
aI("text=Events;url=./html/Events.html");
}

with(milonic=new menuname("Contact_Us")){
style=menuStyleDropDown;
aI("text=Location;url=./html/Location.html;");
aI("text=NewLoc2;url=./html/Location.html;");
aI("text=NewLoc3;url=./html/Location.html;");
aI("text=NewLoc4;url=./html/Location.html;");
aI("text=NewLoc5;url=./html/Location.html;");
aI("text=NewLoc6;url=./html/Location.html;");
aI("text=NewLoc7;url=./html/Location.html;");
aI("text=NewLoc8;url=./html/Location.html;");
aI("text=NewLoc9;url=./html/Location.html;");
}

with(menuStyleVert=new mm_style()){
bordercolor="#7EA189";
borderstyle="solid";
borderwidth=0;
fontweight="bold";
fontfamily="Arial, Tahoma, Verdana";
fontsize="10pt";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#7EA189";
offcolor="#ffffff";
onbgcolor="#ffffff";
oncolor="#7EA189";
outfilter="";
// outfilter="randomdissolve(duration=0.3)";
// overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=2;
pagebgcolor="#ffffff";
pagecolor="#7EA189";
separatorcolor="#7EA189";
separatorsize=10;
//subimage="http://img.milonic.com/arrow.gif";
subimagepadding=0;
}

with(milonic=new menuname("VertMenu")){
alwaysvisible=1;
top=180;
left=10;
orientation="vertical";
style=menuStyleVert;
aI("text=Home;url=http://www.georgefnet.com/test/index.html;");
aI("text=2009 Nest Cam;url=./html/about.html");
aI("text=Events;url=./html/Events.html");
aI("text=Contact Us;url=./html/Contact_Us.html;");
}

drawMenus();

Re: Preventing pagematch highlighting


Poster: Ruth
Dated: Tuesday March 31 2009 - 19:07:58 BST

Hi,

You need to take a look at the properties of the menu for style, menu and item so you can see what each is and how it is used [most have an explanation.] Anyway, in the properties section anything that has to do with page 'highlighting/matching' has the word page in it, i.e. pagebgcolor, pagecolor, pagebgimage, pageborder, etc. Those items have to do with matching. In your style section you have
Code:
pagebgcolor="#ffffff";
pagecolor="#7EA189";
and the url for your main home page is
Code:
url=http://www.georgefnet.com/test/index.html
So, because you have the pagebgcolor set there is a match when you go to that page and the bgcolor become white.

If you want no pagematching, then as Andy noted, you need to either remove that pagebgcolor/pagecolor or you can just put // in front of those and there will be no matching at all for any item. If you want some items to show a match, then you can use those properties in the item itself. Take a look under the main menu on the home page and go down to Menu Quick REference Guide, you will see a number of guides and the style, menu and item properties sections give you what properties can be used in those sections.

Ruth

Re: Preventing pagematch highlighting


Poster: georgefky
Dated: Tuesday March 31 2009 - 21:25:50 BST

Ruth:
Thanks very much for your detailed reply. I did as you suggested and put the // in front of the pagecolor and pagebgcolor for the horz menu and left them in place for the vert menu so the fix would be obvious. This fixed the problem for me. You can go back to the site using the link below and see the results. Thanks so much for your help.

http://www.georgefnet.com/test/index.html

All the best
George