pagematch not workimg (newbie)

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
kevinl
Advanced
Advanced
Posts: 18
Joined: Thu Feb 24, 2005 7:12 pm

pagematch not workimg (newbie)

Post by kevinl »

Hi,

I'm trying to get pagematch to work with no success.

Firstly, I assume what it's supposed to do is set the menu item to the onbgcolor when on the URL defined in pagematch?

Given the style and the three menu items below, sould I expect to see "Civils Report" highlighted when I'm at

Code: Select all

www.mysite.com/page/18 
, or have I mis understood what pagematch does?

How does the menu "know" what pages it's on?

I've tried various formats for the url and an using V5.63 of the menu and IE6 and Firfox 1.0 both on win xp

Thanks,

Kevin

with(style1=new mm_style()){
offbgcolor="#FFD200";
onbgcolor="#D9B300";
etc ...
}




aI("text=Construction Wages;url=/page/25;")
aI("text=Skills in Demand;showmenu=page_20_subm;pointer=default;")
aI("text=Civils Report;url=/page/18;pagematch=/page/18;")
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Pagematch uses the pagebgcolor and pagecolor to do the match, or pageimage if you're using that. So, if you want it to have the onbgcolor/oncolor as the match then you would put pagebgcolor"#D9B300"; pagecolor=whatever your oncolor is. You don't have to use those, you can use whatever colors you want. Also, if you code the pagebgcolor and pagecolor, it should highlight the menu without using pagematch. Usually you do pagematch to have it highlight a page that wouldn't be highlighted normally. I think.

Ruth
kevinl
Advanced
Advanced
Posts: 18
Joined: Thu Feb 24, 2005 7:12 pm

Post by kevinl »

Ruth,

Many thanks! I understand how it all works now and and it even matches the whole meny tree from a submenu backwards, which was going to be my next question!

Thanks,

Kevin
Post Reply