View Full Version : ddaccordion menu header images

03-09-2010, 04:12 PM
1) Script Title: ddaccordion

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordion.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!

03-10-2010, 01:41 AM
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:

<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.

You may also want to change the H3 tag to DIV instead.

03-10-2010, 05:16 PM
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:

And the menu again on our homepage with filters: