Results 1 to 5 of 5

Thread: Adding images to headers (Accordion menu - Glossy)

  1. #1
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Adding images to headers (Accordion menu - Glossy)

    1) Script Title:
    Apple style Accordion Menu

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

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    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/cs...le.php/3470231
    http://www.quirksmode.org/css/multipleclasses.html
    Jeremy | jfein.net

  3. #3
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

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

  4. #4
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, i got it to works with css classes

  5. #5
    Join Date
    Dec 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Different Color for Each Header

    Quote Originally Posted by gqricky View Post
    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!

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
  •