SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Looking for good accordion script

    I have a page for which the content (not the navigation) would be best-suited for three sectoins, each of which is collapsed until the header is clicked. When one expands, the other two should contract. I thought I could just google and find something, but I'm not finding anything that actually works.

    Some notes: this is a corporate Intranet, which means all users are on Windows XP Pro and IE 6. So the code would need to be IE6-friendly.

    any thoughts?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! Looks good, and I will try it in the morning!

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I personally enjoy the following script. I find its lightweight and quite configurable.

    I'd love to post the link, but my post count won't let me! Visit stickmanlabs.com/accordion
    DILIGENThost.com, High-availability Canadian hosting 24/7 support
    cPanel/WHM 11 + Fantastico, PHP4&5, Private nameservers...
    Unlimited domains, Self Serve DNS, No Overselling!
    | Forum & packet loss monitoring @ Webmasters-Inside.com

  5. #5
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pmw57 View Post
    I'm having the darnedest time figuring out how to configure the look of the divs, but I did get it to work. But my biggest problem is that I want all three sections to start out closed.

    Thanks
    Last edited by middletree; Aug 27, 2008 at 09:34.

  6. #6
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by diligenthost View Post
    I personally enjoy the following script. I find its lightweight and quite configurable.

    I'd love to post the link, but my post count won't let me! Visit stickmanlabs.com/accordion
    I agree it looks good, but when I tried it, I couldn't make it work.

  7. #7
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have seen quite a like this using only javascript...one famous being dynamic drives...any way is it possible to use ajax to fecth content.....

    i am planning to give small descriptipn of the news this way...but with many news if ajax is not used i hope page would not be loaded...
    but with ajax i hope the scroll may not be that smooth...
    any way any work around


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
  •