Pagematch issues

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
HVH
Beginner
Beginner
Posts: 4
Joined: Tue Dec 21, 2004 5:44 pm
Location: Oregon
Contact:

Pagematch issues

Post by HVH »

Hello,

In my left vertical menu, I want to make it so that the menu item corresponding to the current page appears as though it's being hovered over (i.e., white). I've already received advice to use the "pagematch" function, but it doesn't seem to be working. Would someone be able to tell me what I'm doing wrong?

Sample page where it should be working: http://www.religionfacts.com/buddhism/contents.htm. I've complicated things by building an "embedded menu" in a table cell, so here's the embedded menu code (note that I've only added the pagematch function to the first few items so far):

Code: Select all

with(milonic=new menuname("BuddhismVertMenu")){
            style=menuStyleBuddhism;
            alwaysvisible=1;
            orientation="vertical";
            position="relative";
            aI("text=Buddhism Home;url=http://www.religionfacts.com/buddhism/contents.htm;pagematch=http://www.religionfacts.com/buddhism/contents.htm");
            aI("text=Fast Facts;url=http://www.religionfacts.com/buddhism/fastfacts.htm;pagematch=http://www.religionfacts.com/buddhism/fastfacts.htm;showmenu=BuddhismFF;");
			aI("text=Timeline;url=http://www.religionfacts.com/buddhism/timeline.htm;pagematch=http://www.religionfacts.com/buddhism/timeline.htm;");
			aI("text=Glossary;url=http://www.religionfacts.com/buddhism/glossary.htm;");
aI("text=History;url=http://www.religionfacts.com/buddhism/history.htm;showmenu=BuddhismHistory");
aI("text=Sacred Texts;url=http://www.religionfacts.com/buddhism/texts.htm;");
aI("text=Beliefs;url=http://www.religionfacts.com/buddhism/beliefs.htm;showmenu=BuddhismBeliefs");
aI("text=Sects & Schools;url=http://www.religionfacts.com/buddhism/sects.htm;showmenu=BuddhismSects");
aI("text=Rituals & Practices;url=http://www.religionfacts.com/buddhism/practices.htm;showmenu=BuddhismPractices");
aI("text=Holidays;url=http://www.religionfacts.com/buddhism/holidays.htm");
aI("text=Symbols;url=http://www.religionfacts.com/buddhism/symbols.htm;showmenu=BuddhismSymbols");
aI("text=Objects;url=http://www.religionfacts.com/buddhism/objects.htm;showmenu=BuddhismObjects");
aI("text=Places;url=http://www.religionfacts.com/buddhism/places.htm;showmenu=BuddhismPlaces");
aI("text=News;url=http://www.religionfacts.com/buddhism/news.htm;");
aI("text=Bookstore;url=http://www.religionfacts.com/buddhism/books.htm;");
aI("text=Store;url=http://www.religionfacts.com/buddhism/store.htm;showmenu=BuddhismStore");

         }
         drawMenus(); // This draws the Buddhism vertical menu.
Thank you!
Holly Hayes
Webmaster
ReligionFacts.com
http://www.religionfacts.com
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You can code pagematch=whateverpage, but if you don't put the pagebgcolor and pagecolor in the style for the particular menu there is nothing for it to call as to color and text color when it does match. If you want it white with black text, then you'd put pagebgcolor="#ffffff"; pagecolor="#000000"; into the menuStyleBuddhism section of your menu_data.js file where the styles are defined.

Ruth
HVH
Beginner
Beginner
Posts: 4
Joined: Tue Dec 21, 2004 5:44 pm
Location: Oregon
Contact:

Post by HVH »

Aha! Worked like a charm, thank you.
Holly Hayes
Webmaster
ReligionFacts.com
http://www.religionfacts.com
Post Reply