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

start image and end image


Poster: pros12
Dated: Tuesday June 26 2007 - 13:55:25 BST

I want to create a menu with curved edges (having a start image and an end image) and I thought using the leftimage and rightimage properties I would achieve this but nothing happens. Is there a way to achieve this? Are these properties supported?

Thanks alot


Poster: Ruth
Dated: Tuesday June 26 2007 - 16:56:45 BST

Hi,

Actually, leftimage and rightimage, if used in the style section will put the named image on the left and right in each item.

You can use them to do what you want, but as I experimented I found that if you want that you need to specify the leftimage in the menu items and you need to use leftimage for both just changing the image used. For example:

Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=10;
aI("leftimage=leftside.gif;text=;type=header;");
aI("text=Home;url=http://www.milonic.com/;");
MORE AI strings here
aI("leftimage=rightside.gif;text=;type=header;");
}


The reason for type=header; is to make those items not react to the mouse if over them.

Make sure you're using 5.777 which is what I tested

Finally, you can of course just use image= to get the same result. That left and right image was really designed to be able to put images on the left and right side of text in an item.

Ruth

Thanks alot Ruth.


Poster: pros12
Dated: Tuesday June 26 2007 - 18:26:55 BST

Thanks alot Ruth. I was puzzled on how I was going to achieve this. I thought the properties were not supported because on the Milonic properties page, they do not have explanations.

Thanks again



Ruth wrote:
Hi,

Actually, leftimage and rightimage, if used in the style section will put the named image on the left and right in each item.

You can use them to do what you want, but as I experimented I found that if you want that you need to specify the leftimage in the menu items and you need to use leftimage for both just changing the image used. For example:

Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=10;
aI("leftimage=leftside.gif;text=;type=header;");
aI("text=Home;url=http://www.milonic.com/;");
MORE AI strings here
aI("leftimage=rightside.gif;text=;type=header;");
}


The reason for type=header; is to make those items not react to the mouse if over them.

Make sure you're using 5.777 which is what I tested

Finally, you can of course just use image= to get the same result. That left and right image was really designed to be able to put images on the left and right side of text in an item.

Ruth