Posted By

brianyang on 09/01/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

KF


jQuery UI Accordion


 / Published in: jQuery
 

URL: http://jqueryui.com/demos/accordion/

UI accordion to integrate with carousel

  1. <script type="text/javascript">
  2. $(function() {
  3. $("#accordion").accordion();
  4. });
  5. </script>
  6.  
  7.  
  8.  
  9. <div class="demo">
  10.  
  11. <div id="accordion">
  12. <h3><a href="#">Section 1</a></h3>
  13. <div>
  14. <p>
  15. Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
  16. ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
  17. amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
  18. odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
  19. </p>
  20. </div>
  21. <h3><a href="#">Section 2</a></h3>
  22. <div>
  23. <p>
  24. Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
  25. purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
  26. velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
  27. suscipit faucibus urna.
  28. </p>
  29. </div>
  30. <h3><a href="#">Section 3</a></h3>
  31. <div>
  32. <p>
  33. Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis.
  34. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero
  35. ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis
  36. lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.
  37. </p>
  38. <ul>
  39. <li>List item one</li>
  40. <li>List item two</li>
  41. <li>List item three</li>
  42. </ul>
  43. </div>
  44. <h3><a href="#">Section 4</a></h3>
  45. <div>
  46. <p>
  47. Cras dictum. Pellentesque habitant morbi tristique senectus et netus
  48. et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
  49. faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
  50. mauris vel est.
  51. </p>
  52. <p>
  53. Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
  54. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
  55. inceptos himenaeos.
  56. </p>
  57. </div>
  58. </div>
  59.  
  60. </div><!-- End demo -->
  61.  
  62. <div style="display: none;" class="demo-description">
  63. <p>
  64. Click headers to expand/collapse content that is broken into logical sections, much like tabs.
  65. Optionally, toggle sections open/closed on mouseover.
  66. </p>
  67. <p>
  68. The underlying HTML markup is a series of headers (H3 tags) and content divs so the content is
  69. usable without JavaScript.
  70. </p>
  71. </div><!-- End demo-description -->

Report this snippet  

You need to login to post a comment.