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

image positioning


Poster: kevinl
Dated: Tuesday March 29 2005 - 18:54:19 BST

Hi,

I have a menu http://www.solomon.ie/test/ and what I want to do is display an icon image at the end of some of the menu items.

The code i'm using is :

Code:
aI("text=  Link C;image=design/key_icon3.gif;imageposition=right;imagealign='right';imagepadding=5;url=#;showmenu=second_menu;")


The problem is that the positioning of the image against the RHS side of the menu changes depending on wheather or not the menu item has a sub menu or not.

I've tried various image positioning options but still cant get it to work, can anyone point me in the right direction?

Many thanks,

Kevin.


Poster: kevin3442
Dated: Wednesday March 30 2005 - 0:05:11 BST

Hi Kevin,

Looks like the problem is the subimage. Menu items that open a submenu include your image, as well as the subimage (the arrow) thath indicates the presence of a submenu. Removing
Code:
subimage="design/arrow.gif";

from the style1 definition in osc_menu.js will make the arrow go away so that your images line up. But then you lose the visual submenu indicator. Do you want both?

Cheers,

Kevin


Poster: kevinl
Dated: Wednesday March 30 2005 - 10:14:53 BST

Hi Kevin,

Yes, I want both. Is it possible?

I thought of a workaround - for menus with no sub menus use a different version of the icon, one that has a transparent border on the RHS equal to the width of the arrow grapics. However, this would require extra coding in my PHP script that generates the menu from my database, so fixing the problem within Milonic would be best by far!

Thanks,
KEvin