Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.62 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <script type="text/javascript">
  2. $(document).ready(function(){
  3.     $("div.rollcontent").hide();
  4.     $("div.rolltitle").toggle(function(){
  5.         $(this).addClass("active");
  6.         }, function () {
  7.         $(this).removeClass("active");
  8.     });
  9.     $("div.rolltitle").click(function(){
  10.         $(this).next("div.rollcontent").slideToggle("slow");
  11.     });
  12.     $(".expand_all").toggle(function(){
  13.         $(this).addClass("expanded");
  14.         }, function () {
  15.         $(this).removeClass("expanded");
  16.     });
  17.     $(".expand_all").click(function(){
  18.         $(".toggle_container").slideToggle("slow");
  19.     });
  20. });
  21. </script>