Preventing pagematch highlighting

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
georgefky
Beginner
Beginner
Posts: 4
Joined: Tue Mar 24, 2009 12:03 am

Preventing pagematch highlighting

Post by georgefky »

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://milonic.com/mfa/2005-May/unw ... hting.html

I did not find an answer to this problem.

Thanks in advance for your help.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Preventing pagematch highlighting

Post by Andy »

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
georgefky
Beginner
Beginner
Posts: 4
Joined: Tue Mar 24, 2009 12:03 am

Re: Preventing pagematch highlighting

Post by georgefky »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Preventing pagematch highlighting

Post by Andy »

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://milonic.com/support/
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Preventing pagematch highlighting

Post by John »

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.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Preventing pagematch highlighting

Post by Ruth »

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
georgefky
Beginner
Beginner
Posts: 4
Joined: Tue Mar 24, 2009 12:03 am

Re: Preventing pagematch highlighting

Post by georgefky »

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: Select all

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();

User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Preventing pagematch highlighting

Post by Ruth »

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: Select all

pagebgcolor="#ffffff";
pagecolor="#7EA189";
and the url for your main home page is

Code: Select all

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
georgefky
Beginner
Beginner
Posts: 4
Joined: Tue Mar 24, 2009 12:03 am

Re: Preventing pagematch highlighting

Post by georgefky »

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
Post Reply