Results 1 to 5 of 5

Thread: Glossy Accordion Menu

  1. #1
    Join Date
    Dec 2010
    Posts
    41
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Glossy Accordion Menu

    1) Script Title:
    Glossy Accordion Menu

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

    3) Describe problem:

    hi.
    i added the 'plus' and 'minus' gifs to the menu. how can i customize it ?
    how can i move the buttons to a different place ?
    thanks

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

    Default

    The style is right here:
    Code:
    .glossymenu a.menuitem .statusicon{ /*CSS for icon image that gets dynamically added to headers*/
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    }
    (find that in your css)
    Jeremy | jfein.net

  3. #3
    Join Date
    Dec 2010
    Posts
    41
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    thanks.
    i'm trying to use the plus/minus icons but not in Glossy Accordion but in Urban Gray Accordion.
    what should be the command instead of:
    .glossymenu a.menuitem .statusicon{ ?
    i tried:
    .urbangreymenu a.menuitem .statusicon{
    but it didn't work..

  4. #4
    Join Date
    Dec 2010
    Posts
    41
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Hi.
    any idea ? please...

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

    Default

    Download the plus and minus icons from the glossy accordion menu.

    In your style, add:
    Code:
    .urbangreymenu img {
    position: absolute;
    top: 8px;
    right: 5px;
    }
    Then, in each h3 add an image with a url to minus.gif, e.g.,
    Code:
    <h3 class="headerbar"><a href="http://www.dynamicdrive.com/style/">CSS Library</a><img src="minus.gif" /></h3>
    Then for the onopenclose option add:
    Code:
    	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
    		if(state == "none"){
    			header.getElementsByTagName('img')[0].src = "minus.gif";
    		} else {
    			header.getElementsByTagName('img')[0].src = "plus.gif";
    		}
    	}
    Good luck
    Jeremy | jfein.net

  6. The Following User Says Thank You to Nile For This Useful Post:

    orenlebbo (01-07-2011)

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
  •