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:50

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


Poster: ripnoel
Dated: Monday March 21 2005 - 14:23:09 GMT

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


Poster: John
Dated: Monday March 21 2005 - 17:20:34 GMT

style= is used for Menus, but not individual Menu Items. Perhaps the rawcss= parameter might help...


Poster: Ruth
Dated: Monday March 21 2005 - 18:53:31 GMT

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

Code:
aI("text=&nbsp;&nbsp;&nbsp;(865) 609-8187;headerbgcolor=#ff0000;headercolor=#000000;
fontweight=bold;type=header;");


Ruth


Poster: kevin3442
Dated: Monday March 21 2005 - 19:32:20 GMT

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:
<style>
.boldMenuStyle {
  your
  CSS
  code
}
</style>

then you could apply it to the item using the onclass and offclass item properties, like so:
Code:
aI("text=Item Text;type=header;onclass=boldMenuStyle;offclass=BoldMenuStyle;");


I guess it really depends on what exactly your "boldMenuStyle" is...

Cheers,

Kevin