PDA

View Full Version : Adding images to headers (Accordion menu - Glossy)



gqricky
08-25-2008, 07:01 PM
1) Script Title:
Apple style Accordion Menu

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-apple.htm


3) Describe problem:

Is there a way to add a different background image to each header of a menu. My menu has two headers and i would like to add a different images in the background of each one.

Thanks.

Nile
08-25-2008, 07:46 PM
You may need to give each separate menu a different class, so you can have different images. Check out CSS Classes in one of the following places.
http://www.w3schools.com/CSS/css_pseudo_classes.asp
http://www.tizag.com/cssT/class.php
http://www.htmlgoodies.com/beyond/css/article.php/3470231
http://www.quirksmode.org/css/multipleclasses.html

gqricky
08-25-2008, 08:13 PM
I already tried creating two css classes but in the init function there is a line that reference only one class name:

headerclass: "silverheader", //Shared CSS class name of headers group

I think the function only accepts one header class????

gqricky
08-25-2008, 08:18 PM
Thanks, i got it to works with css classes :)

gusto
12-05-2008, 10:59 PM
Thanks, i got it to works with css classes :)

Can you please explain what you did as I need the same thing and have not been able to figure out how to change each header to a new color. I have the navigation working fine but I have 6 section and subsections that I would like to separate with the use of color.

Thanks!