Advanced Search

Results 1 to 3 of 3

Thread: Animated Collapsible DIV

  1. #1
    Join Date
    Jan 2008
    Posts
    51
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default [solved] Animated Collapsible DIV

    1) Script Title: Animated Collapsible DIV

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

    3) Describe problem: No problem, just a question.

    I'd like to be able to do the following when the slideit() function is activated:

    1) Slide the content div up/down (already part of the script)
    2) Change the background CSS of the element I clicked on (h1).

    I'm using this script for a kind of menu (though not exactly). There is a <h1> element which serves as the link. When I click it, I'd like this to stand out and become a more prominent header.

    Basically go from:

    HTML Code:
    <h1 style='background:#eee url(plus.gif) no-repeat right'>Heading</h1>
    to

    HTML Code:
    <h1 style='background:#ccc url(minus.gif) no-repeat right'>Heading</h1>
    Is this possible?

    Thanks for the help in advance!
    Last edited by ReadyToLearn; 01-29-2008 at 03:06 PM. Reason: Problem solved

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    It sounds like this: http://www.dynamicdrive.com/dynamici...daccordion.htm might suit your needs better than the collapsible div script.

  3. #3
    Join Date
    Jan 2008
    Posts
    51
    Thanks
    46
    Thanked 1 Time in 1 Post

    Default

    Thank you! Thank you! Thank you! That's exactly what I needed!!!

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
  •