separatorcolor and size does work for individual items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mledesma
Beginner
Beginner
Posts: 3
Joined: Thu Dec 18, 2003 6:44 am
Location: Waltham, MA
Contact:

separatorcolor and size does work for individual items

Post by mledesma »

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
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
mledesma
Beginner
Beginner
Posts: 3
Joined: Thu Dec 18, 2003 6:44 am
Location: Waltham, MA
Contact:

Post by mledesma »

Thanks, It does work without the ''
Post Reply