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

separatorcolor and size does work for individual items


Poster: mledesma
Dated: Wednesday January 7 2004 - 21:25:55 GMT

Here is an example of how i'm setting the values
aI("text=Item5;onfunction=showtip('Creates a new file');separatorcolor='#FF0000';separatorsize='3';url=javascript:alert('New was selected');");

Could you please correct me if i'm doing something wrong ?

I'm adding the complete menu definition:
with(milonic=new menuname("MyMenuMenu30")){_c=1
borderwidth=1;
itemwidth=192;
style=_mainItemStyle;
aI("text=New;onfunction=showtip('Creates a new file');showmenu=MyMenuMenu930;");
aI("text=Edit;onfunction=showtip('Edits a new file');url=javascript:alert('Edit was selected');");
aI("text=Item1;onfunction=showtip('Creates a new file');url=javascript:alert('New was selected');");
aI("text=Item2;onfunction=showtip('Creates a new file');url=javascript:alert('New was selected');");
aI("text=Item3;onfunction=showtip('Creates a new file');url=javascript:alert('New was selected');");
aI("text=Item4;onfunction=showtip('Creates a new file');url=javascript:alert('New was selected');");
aI("text=Item5;onfunction=showtip('Creates a new file');separatorcolor='#FF0000';separatorsize='3';url=javascript:alert('New was selected');");
aI("text=Item6;onfunction=showtip('Creates a new file');url=javascript:alert('New was selected');");
aI("text=Item7;onfunction=showtip('Creates a new file');url=javascript:alert('New was selected');");
aI("text=Item8;onfunction=showtip('Creates a new file');url=javascript:alert('New was selected');");
}

and _mainItemStyle does not contains any separator property


Poster: Maz
Dated: Wednesday January 7 2004 - 23:19:45 GMT

ummmm, I don't know what most of this is, I see you are creating a new file, can't separator go in top styles per normal?

Then have you considered all those ' ' ' ' '

Then take the ' ' off separator size.

maz


Poster: mledesma
Dated: Thursday January 8 2004 - 18:55:11 GMT

Thanks, It does work without the ''