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: Saturday July 14 2012 - 06:07:17

Different Color Sub Nav Link

Poster: Msquared
Dated: Tuesday January 17 2006 - 15:11:17 GMT

Im creating a menu with milonic. Im trying to change the color of only one link in the subnav to a Red here is my code.

with(milonic=new menuname("beddingEnsembles")){
aI("text=View All ;url=shopdisplayproducts.asp?id=193;");
aI("text=New Arrivals ;url=shopdisplayproducts.asp?id=127;");
aI("text=Top Sellers;url=shopdisplayproducts.asp?id=128;");
aI("text=Bedding by brand;showmenu=beddingByBrand;");
aI("text=Goose Down/Poly Fillers;url=shopdisplayproducts.asp?id=118;");
aI("text=Sheepskin Rugs ;url=shopdisplayproducts.asp?id=119;");
aI("text=Silk Bedding;url=shopdisplayproducts.asp?id=120;");
aI("text=Solid Bedding;url=shopdisplayproducts.asp?id=121;");

If you see the last item i have set an off color for this item to be in red but when i run the code the item does not show up in red. Was wondering if anybody can help. Thanks

Poster: Ruth
Dated: Tuesday January 17 2006 - 15:43:25 GMT


Try removing the single quotes from '#ff0000'. Coding in aI strings doesn't get quotes. Well, maybe calling a javascript function.....but the normal menu properties don't have quotes when in an aI string, unlike when you have them in the styles, i.e. offcolor="#ff0000"; in the menuStyle and offcolor=#ff0000; in an aI string.


Poster: Msquared
Dated: Tuesday January 17 2006 - 15:58:43 GMT

thank you