A separator image

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
pthawkes
Beginner
Beginner
Posts: 7
Joined: Thu Nov 06, 2003 4:33 pm

A separator image

Post by pthawkes »

Am I correct in assuming that the separatorimage property on the itempoperties page is still in development or does not work in Version 5 yet??? Or if it is working I can't get it to work.

Do I put the separatorimage property here:

aI('text=Menu;showmenu=;url=http:\\...etc;separatorimage=/MenuSeparator.gif;')

Or do I put it here:


with(menuStyle1=new mm_style()){
onbgcolor="8CB2D6";
oncolor="ffebdc";
offbgcolor="#D6EBFF";
offcolor="#18344A";
bordercolor="White";
borderstyle="solid";
borderwidth=1;
separatorcolor="white";
separatorsize="2";
separatorimage="/MenuSeparator.gif";
padding=5;
fontsize="12px";
fontstyle="normal";
fontfamily="Arial,Verdana, Tahoma";
pagecolor="#18344A";
pagebgcolor="#D6EBFF";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="/images/LF1/MenuArrowRight.gif";
subimagepadding="2";
overfilter="Fade(duration=0.1);Alpha(opacity=100);"
}

Thanks in Advance
Paul
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Paul,

The separatorimage property does indeed work. You can put it either place you mentioned... either in the menu style definition or in any individual menu item definition. Many "appearance" related properties can be defined as menu style propertied or as menu item properties. If you want to set such a property for an entire menu, or set of menus, then you can do so in a style and apply that style to the menu(s) you want to affect. But you can also override the style setting on a per-item basis, by assigning an alternative value in an aI() menu item definition.

Perhaps in your case you simply have the path to the image file wrong (by using the slash before the filename). Just a guess...

Hope that helps,

Kevin
Post Reply