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.