Results 1 to 5 of 5

Thread: Does expand/collapse script like this exist?

  1. #1
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Does expand/collapse script like this exist?

    Hi,

    I have a definition list:
    Code:
    <dl>
    <dt><a>switch link</a></dt>
    <dd>bla bla</dd>
    <dl>
    I want to have a link in the <dt> that expands/collapses the <dd>. Is it possible to have a script that doesn't require an id or a class in <dd>? And also to put a css background image in <dt> (or <dl>) which is changed on every click (a +/- sign)? And to be able to remember it's state (expanded or collapsed) next time the page is visited (with cookies?)

    Do you know if a suitable script exists?

    Thank you very much,
    Martin

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's invalid markup, as far as I can tell, so it is unclear what you have in mind. Have you looked at the expandable content and switch content scripts here at DD?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    .... </dl>


    I just asked if you have seen expand/collapse script that can remember it's state. I mean whether it is collapsed or expanded. Like gmail for expample. If you expand the "labels" box there, next time you visit gmail it will be expanded again. Or the opposite.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Erm... it's not a DD script. He was asking if one existed, not asking for help with an existing one.
    neomatrix: Try this.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •