Results 1 to 3 of 3

Thread: ddaccordion menu header images

  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ddaccordion menu header images

    1) Script Title: ddaccordion

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

    3) Describe problem: Hi, I wonder if anyone can advise on the following:
    I am trying to add images to the <a> tags in the headers (named silverheader in the script and css) instead of text but it does not seem possible, is that because the script only excepts text?
    If you go to the script source page you'll see titles such Dogs, Cats, Rabbits my question is can one replace the text in the titles with images?

    Thanks in advance!

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

    Default

    It shouldn't matter whether the headers are images or text. You'd simply replace the text inside each header to an image tag, for example:

    Code:
    <h3 class="mypets"><img src="expand.jpg" /></h3>
    <div class="thepet">
    <img src="http://i10.tinypic.com/7xlrga1.jpg" />
    The dog is a domestic subspecies of the wolf, a mammal of the Canidae family of the order Carnivora. The term encompasses both feral and pet varieties and is also sometimes used to describe wild canids of other subspecies or species. The domestic dog has been (and continues to be) one of the most widely-kept working and companion animals in human history, as well as being a food source in some cultures.
    </div>
    You may also want to change the H3 tag to DIV instead.
    DD Admin

  3. #3
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK. did not think of adding the image inside the herder but just about tried everything else.
    Thank you very much for help (+the script if you have got anything to do with it).

    If anyone is interested, you can see the 2nd level drop-down menu directly connecting to specific submenus and opening them on hit on test pages here:
    http://www.cs.manchester.ac.uk/ape/s...silverheader=4

    And the menu again on our homepage with filters:
    http://www.cs.manchester.ac.uk/

    Cheers!

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
  •