Changing sub-arrow on collapse

Home Forums Older releases 1.0.x Changing sub-arrow on collapse

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2677
    DanM
    Participant

    I would like to use a different image for the sub-arrow class if the submenu it expands is expanded or collapsed. Is there an easy way to do this with SmartMenus options, events or methods? Thanks!

    #2681
    admin
    Keymaster

    When a sub menu is displayed, the script adds the highlighted class to its parent item’s link and removes it again when the sub menu is hidden (provided the keepHighlighted: true option is used which is the case by default). So you could use that to change the sub-arrow’s background image – e.g. something like:

    .menuClass a.highlighted span.sub-arrow {
    	/* ... */
    }
    #2682
    DanM
    Participant

    Just what I needed. Thanks very much! Your plugin is great!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Register

You will be emailed a link to set your password.

Login

Lost password?