Results 1 to 3 of 3

Thread: Adding Images to AnyLink Drop Down Menu v2.0

  1. #1
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Adding Images to AnyLink Drop Down Menu v2.0

    Anylink CSS Menu v2.2

    http://www.dynamicdrive.com/dynamici...pmenuindex.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:

    Code:
    Code:
    ["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
    Last edited by ddadmin; 06-24-2009 at 06:39 PM. Reason: Entered link to script.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Have you tried directly adding the HTML markup for the image alongside the menu item's text, for example:

    Code:
    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!
    ]
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    aro (06-24-2009)

  4. #3
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much. Works great. I guess I was looking at it a little too hard. :-)

    thanks,

    aro

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •