PDA

View Full Version : Adding Images to AnyLink Drop Down Menu v2.0



aro
06-24-2009, 05:15 AM
Anylink CSS Menu v2.2

http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

Hi,
I'm using the "AnyLink Drop Down Menu v2.0" and I would like to be able to add different images in front of the links in the menu with multiple columns.

For example:



["Image One here", "Dynamic Drive", "http://www.dynamicdrive.com/"],
["Image Two here", "CSS Drive", "http://www.cssdrive.com/"],
["Image Three here", "Coding Forums", "http://www.codingforums.com/"],
...

If it was the same image, I could possibly add it in the li in the CSS, but each image is different. Please show me how to alter the code. Thanks for your help.

aro

ddadmin
06-24-2009, 06:39 PM
Have you tried directly adding the HTML markup for the image alongside the menu item's text, for example:


anylinkmenu1.items=[
["<img src='test.gif' style='border-width:0' /> Dynamic Drive", "http://www.dynamicdrive.com/"],
["CSS Drive", "http://www.cssdrive.com/"],
["JavaScript Kit", "http://www.javascriptkit.com/"],
["Coding Forums", "http://www.codingforums.com/"],
["JavaScript Reference", "http://www.javascriptkit.com/jsref/"] //no comma following last entry!
]

aro
06-24-2009, 07:29 PM
Thank you very much. Works great. I guess I was looking at it a little too hard. :-)

thanks,

aro