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:52
pagematch not workimg (newbie)
Poster: kevinl
Dated: Tuesday March 1 2005 - 16:00:05 GMT
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:
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;")
Poster: Ruth
Dated: Tuesday March 1 2005 - 20:37:18 GMT
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