image positioning

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
kevinl
Advanced
Advanced
Posts: 18
Joined: Thu Feb 24, 2005 7:12 pm

image positioning

Post by kevinl »

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: Select all

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.
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 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: Select all

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
kevinl
Advanced
Advanced
Posts: 18
Joined: Thu Feb 24, 2005 7:12 pm

Post by kevinl »

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
Post Reply