Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Thursday February 8 2018 - 06:02:55

Pagematch issues


Poster: HVH
Dated: Thursday December 23 2004 - 6:06:46 GMT

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!


Poster: Ruth
Dated: Friday December 24 2004 - 5:41:30 GMT

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


Poster: HVH
Dated: Tuesday December 28 2004 - 18:12:30 GMT

Aha! Worked like a charm, thank you.