Please refresh my memory...in line style change?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ripnoel
Super Advanced
Super Advanced
Posts: 50
Joined: Tue Jan 21, 2003 4:15 am
Location: Foothills of The Great Smoky Mtns.

Please refresh my memory...in line style change?

Post by ripnoel »

Greetings:

I need to change the style of one header only in a top level menu leaving the other headers as is. I have created the new style but I can't remember how to code it so only this one header uses the new style.

Here is what I am trying but it is not working. Help apreciated:

aI("text=   Warranty;url=/corporate/warranty.html;");
aI("text=   Contact Us;url=/corporate/contact.html;");
aI("text=   (865) 609-8187;style=boldMenuStyle;type=header;");

<boldMenuStyle> is the name of my new style.

Thanks in advance.

Rip
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

style= is used for Menus, but not individual Menu Items. Perhaps the rawcss= parameter might help...
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I don't know what is in the boldMenustyle, but you can put certain style changes in the aI string. i.e.

Code: Select all

aI("text=&nbsp;&nbsp;&nbsp;(865) 609-8187;headerbgcolor=#ff0000;headercolor=#000000;
fontweight=bold;type=header;"); 
Ruth
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Rip,

Nice to see that you're still using Milonic Menus.

Here's another thought:

If boldMenuStyle is actually a defined CSS class, e.g.

Code: Select all

<style>
.boldMenuStyle {
  your
  CSS
  code
}
</style>
then you could apply it to the item using the onclass and offclass item properties, like so:

Code: Select all

aI("text=Item Text;type=header;onclass=boldMenuStyle;offclass=BoldMenuStyle;");
I guess it really depends on what exactly your "boldMenuStyle" is...

Cheers,

Kevin
Post Reply