Main menustyle retaining oncolor

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
BigJohnson
Advanced
Advanced
Posts: 14
Joined: Sat May 01, 2004 7:55 pm

Main menustyle retaining oncolor

Post by BigJohnson »

Hi
Is there a way that the "oncolor" can be retained once an option has been selected within that menu?

The reasoning behind this is that the user can then see which main menu option was selected.

Hope that makes sense!
Thanks
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I'm not sure what you mean, there is pagebgcolor and pagecolor to show active pages, there is also a changecolorsbyclick module and a Menu Item Activation Module. Menu Bolt-on Modules and there's a demo page down at the bottom are the Milonic Bolt-on Module demos so you can see what they do.

Ruth
BigJohnson
Advanced
Advanced
Posts: 14
Joined: Sat May 01, 2004 7:55 pm

Post by BigJohnson »

Hi
The mmItemActivateByShowMenu function seems to be the way forward. I've downloaded the .js file and referenced it - all seems well, but I get an error when navigating to the destination page.

<SCRIPT language=JavaScript src="../../menu1/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript> _d.write("<scr"+"ipt language=JavaScript src=../../menu1/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="../../menu1/pro_menu_data.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="../../menu1/mmpagehighlighter.js" type=text/javascript></SCRIPT>


with(milonic=new menuname("SitePurchase")){
style=menuStyle;
itemwidth=175;
margin=2;
aI("text=Site;url=../../prosys/admin/proSite.asp;");
aI("text=Legal;url=../../prosys/admin/proSiteLegal.asp;");
aI("text=The Deal;url=../../prosys/admin/proSiteDeal.asp;");
aI("text=Vendor & Interested Parties;url=../../prosys/admin/pro_SITE_OtherContacts.asp;");
aI("text=Notes & Comments;url=../../prosys/admin/pro_SITE_Notes.asp;clickfunction=mmItemActivateByShowMenu('SitePurchase');");
}
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Unfortunately, I don't really know how these things work. Do you have the module on all the pages with the menu? That's the only thing that comes to mind which probably has nothing to do with the problem.

Ruth
Post Reply