Results 1 to 5 of 5

Thread: How to use an image to open the drop down content box instead of a word link

  1. #1
    Join Date
    Apr 2005
    Location
    UK
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to use an image to open the drop down content box instead of a word link

    1) Script Title: dropdowncontent.js

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lapcontent.htm

    3) Describe problem: not a problem as such but wondered if there any way you can use an image to open the content box instead of a word link
    Last edited by Snookerman; 04-22-2009 at 08:08 AM. Reason: added "Resolved" prefix

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Sure, just give the image tag the rel attribute, e.g.:
    Code:
    <img src="image.png" rel="subcontent" alt="">
    Good luck!

  3. #3
    Join Date
    Apr 2005
    Location
    UK
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks snookerman but i did try that but the link does not work and the content box wont open

  4. #4
    Join Date
    Apr 2005
    Location
    UK
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    its k have sorted it thanks snookeman

  5. #5
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help!
    You can go to your first post in this thread, click then click Go Advanced and add the Resolved prefix to the thread title.
    This will let other users know the problem has been solved.

    Good luck with your site!

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
  •