Template:Team:TU Munich/ExCol

From 2012.igem.org

(Difference between revisions)
(Created page with "<html> <script> $(document).ready(function() { $('h2').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>") $('h2').attr({ onMouseOver...")
Line 7: Line 7:
  $('h2').next('div').hide()
  $('h2').next('div').hide()
  $('h2').click(function() {
  $('h2').click(function() {
-
   $(this).next('div').fadeToggle()
+
   $(this).nextUntil('div').fadeToggle()
  });
  });
  $('h3').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>")
  $('h3').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>")
  $('h3').next('div').hide()
  $('h3').next('div').hide()
  $('h3').click(function() {
  $('h3').click(function() {
-
   $(this).next('div').fadeToggle()
+
   $(this).nextUntil('div').fadeToggle()
  });
  });
  $('h3').attr({ onMouseOver: "this.style.cursor='pointer'"})
  $('h3').attr({ onMouseOver: "this.style.cursor='pointer'"})

Revision as of 20:11, 23 September 2012