Results 1 to 3 of 3

Thread: Animated Collapsible DIV - Integrating Plus and Minus Images

  1. #1
    Join Date
    Jul 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Animated Collapsible DIV - Integrating Plus and Minus Images

    1) Script Title: Animated Collapsible DIV v2.01

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici...edcollapse.htm

    3) Describe problem:

    I have a plus and minus image I want to use to facilitate the div open/close; however, I am unable to connect/associate the +/- behavior by clicking on the link. Translation: I am interested in having the - change to + when someone clicks on the link, and from + to - when they click on the link again.

    Here's what my code looks like now:

    <a href="javascript:animatedcollapse.toggle('001')"><img src="../template_images/minus.png" border="0" onclick="this.src=(document.getElementById('001').style.display!='none')?'../template_images/minus.png':'../template_images/plus.png';" />Link</a>

    Your help is much appreciated!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There's no easy way to add indicators that change depending on a collapsible DIV's state unfortunately. It's something I plan to add when the script is updated again. In the meantime, Accordion Content script does support this.

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

    Default

    As i see, you promised, you will build in this function.
    As i see, since 2008 july you didn't do that

    Can we count on this?
    Thx, and anyway the script is very good.

    I tried to see trough what happend, but i can not catch the action. If i toogle, the action will always 'toogle' so i never know is it opened, or closed.

    EDIT: miss spelled the date.

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
  •