Hyperlinked image next to my menu item label

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ccopleston
Beginner
Beginner
Posts: 3
Joined: Wed Apr 27, 2005 5:30 pm

Hyperlinked image next to my menu item label

Post by ccopleston »

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

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!
Kind Regards,

Chris Copleston
http://www.softidiom.com
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Code: Select all

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
ccopleston
Beginner
Beginner
Posts: 3
Joined: Wed Apr 27, 2005 5:30 pm

Post by ccopleston »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
ccopleston
Beginner
Beginner
Posts: 3
Joined: Wed Apr 27, 2005 5:30 pm

Post by ccopleston »

Hi Ruth,

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

Chris Copleston
http://www.softidiom.com
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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