Main Menu Items: individual styles

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tduemig
Beginner
Beginner
Posts: 4
Joined: Thu May 18, 2006 8:05 pm

Main Menu Items: individual styles

Post by tduemig »

Is there a way to assign a style to individual items in the "main menu" group so that it overides the style assigned in the following code:

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=180;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=MyMilonic;");
}


something like this maybe?
aI("text=Milonic;showmenu=Milonic;style=MenuStyle2;");

I don't want to use css because I wrote a backend utiltiy in asp.net to generate style blocks and the admin tool I wrote lets me assign styles to any item, I just need to find out how to explicitly define and overide a global style for a particular item.

Sorry if confusing.

Thanks in advance!!
Tim
tduemig
Beginner
Beginner
Posts: 4
Joined: Thu May 18, 2006 8:05 pm

someone please reply

Post by tduemig »

I have purchased a license for this menu and I don't think I've asked a tough question...can someone please reply with an answer.

I've tried doing a work around by explicitly defining offbgcolor, onbgcolor, etc...but the original style assinged to that menu group is overiding them. Is there a way to tell each AI() item to ignore parent styling ??

Thanks,
Tim
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

It's been added to the CVS tree and should be available as a Pre Release by Monday.

The property name is menustyle and can be added to a menu item, like this:

Code: Select all

aI("text=Milonic;showmenu=Milonic;menustyle=MenuStyle2;"); 
Hope this helps,
Andy
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Pre Release has now been updated and can be downloaded from http://milonic.com/menuvinfo.php
tduemig
Beginner
Beginner
Posts: 4
Joined: Thu May 18, 2006 8:05 pm

Post by tduemig »

Andy wrote:Pre Release has now been updated and can be downloaded from http://milonic.com/menuvinfo.php
Thank You!!
Post Reply