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

Main Menu Items: individual styles


Poster: tduemig
Dated: Thursday May 18 2006 - 20:13:55 BST

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://www.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

someone please reply


Poster: tduemig
Dated: Friday May 19 2006 - 16:15:22 BST

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


Poster: Andy
Dated: Friday May 19 2006 - 23:11:31 BST

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:
aI("text=Milonic;showmenu=Milonic;menustyle=MenuStyle2;");


Hope this helps,
Andy


Poster: Andy
Dated: Saturday May 20 2006 - 11:28:58 BST

Pre Release has now been updated and can be downloaded from http://www.milonic.com/menuvinfo.php


Poster: tduemig
Dated: Tuesday May 23 2006 - 15:07:24 BST

Andy wrote:
Pre Release has now been updated and can be downloaded from http://www.milonic.com/menuvinfo.php


Thank You!!