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

Hyperlinked image next to my menu item label


Poster: ccopleston
Dated: Wednesday April 27 2005 - 17:57:28 BST

Hi,

I would like to include an independent hyperlinked image next to my menu item label. The only way I have found to do this is as follows:
Code:
aI("type=html;text=<a href='admin.html'><img src='manage.gif'></a><a href='index.html'>Home</a>;status=Home page;");

The problem with this approach is the label of the menu item does not honour the menu styles I have configured.

Has anyone done something similar or can think of a way to do this? Any help greatly appreciated!


Poster: Ruth
Dated: Wednesday April 27 2005 - 23:26:41 BST

Hi,

Code:
aI("type=html;text=Home<a href='admin.html'><img src='manage.gif'></a>;status=Back To Home Page;url=index.html;");


The item will wrap, putting the image below. I haven't been able to figure out how to stop that. Maybe someone else knows how to do that.

Ruth


Poster: ccopleston
Dated: Thursday April 28 2005 - 9:34:18 BST

Hi Ruth,

Thank you for your reply.

I am not seeing the item wrapping, my problem is however that the label is not formatted according to my styles. It looks like a standard hyperlink instead of a menu:

This is the formatting without my hyperlinked image:
Image
This is it with the hyperlinked image:
Image
I really appreciate your help.

Chris Copleston
Managing Director
http://www.softidiom.com


Poster: Ruth
Dated: Thursday April 28 2005 - 18:17:29 BST

Hi Chris,

You are way downlevel on the menu which is why it doesn't wrap. You need to upgrade, but then you'll have the wrap problem which I don't know the answer to fixing. It looks like you have a style sheet, looks like the link color is coming into play when you change to type=html and it seem to be applying itself to the whole menu. I can't make a suggestion since the menu is so far downlevel on how to fix it. We don't support downlevel because too many changes take place as they are upgraded.

I suggest you get the newest version, copy your 3 milonic base files and save them someplace to have them incase you have to revert for any reason, and try the new version with your image.

Ruth


Poster: ccopleston
Dated: Thursday April 28 2005 - 23:31:24 BST

Hi Ruth,

This is not on our live site (http://www.softidiom.com), it is running locally using the latest version.


Poster: Ruth
Dated: Thursday April 28 2005 - 23:59:45 BST

Hi Chris,

Well, I still need whatever you have on your page. If you could put a test page up at your site, with your stylesheet and such, that would be easiest, but if not, I need you to post the html code for the page, the css code for the stylesheet, and the menu_data.js code so I can try and make a page and test it to see what's going on. Make sure you use the code button above to open and close the code.

Ruth