Separator Image

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
spirollo
Beginner
Beginner
Posts: 7
Joined: Wed Aug 27, 2003 6:21 pm
Location: Bucks County, PA

Separator Image

Post by spirollo »

I cannot get a separator image to appear. I have the following defined from the default menu that comes with the menu download. I tried putting a separatorimage after the samples menu. If I set "separatorsize to something it will indeed show the arrows over and over again llike a "separator line" so I know the file path is good. I have tried setting separatorheight, width, etc. to no avail.

What am I missing here?

Code: Select all

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://milonic.com/;status=Back To Home Page;");
aI("text=Menu Samples;showmenu=Samples;separatorimage=arrow.gif;separatorheight=5");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=MyMilonic;");
}
Scott
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You would need this code to get your separatorimage in the horizontal or vertical menu

Code: Select all

aI("text=Menu Samples;separatorimage=arrow.gif;separatorsize=1;showmenu=Samples;");


The separatorsize if set to 1 will just give you a line in the menu no matter which orientation. In the horizontal the menu reads the 1 as the width of the image, in the vertical it reads it as the height of the image. To show the image the separatorsize needs to be the width of the image in a horizontal menu: the arrow image is 5 px wide so set separatorsize to 5 it will be that width and will repeat y the height of the horizontal menu. It is 7 px high so in the vertical you'd specify separatorsize=7; and it will show the full arrow and repeat x across the menu.

separatorheight is for the horizontal menu and separatorwidth is for vertical and would be used for the following:

If you want to specify a different height in the horizontal, making the separator, [image or line] not go the complete height of the menu, then you would use separatorheight= and a number less than the menu height. If you want to specify a width in vertical that is less than the menuwidth use separatorwidth= and a number less than the vertical menu width.

Hope that helps.

Ruth
Post Reply