Different Color Sub Nav Link

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Msquared
Beginner
Beginner
Posts: 2
Joined: Tue Jan 17, 2006 4:00 pm
Contact:

Different Color Sub Nav Link

Post by Msquared »

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")){
style=submenuStyle;
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;");
aI("offcolor='#ff0000';text=Clearance;url=shopdisplayproducts.asp?id=126;");
}

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
Mario
Web Designer/Developer
http://www.mariomelchor.com
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

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.

Ruth
Msquared
Beginner
Beginner
Posts: 2
Joined: Tue Jan 17, 2006 4:00 pm
Contact:

Post by Msquared »

thank you
Mario
Web Designer/Developer
http://www.mariomelchor.com
Post Reply