Template:Team:TU Munich/ExCol
From 2012.igem.org
(Difference between revisions)
Line 5: | Line 5: | ||
$('h2').not('div.noexcol h2').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>") | $('h2').not('div.noexcol h2').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>") | ||
$('h2').not('div.noexcol h2').attr({ onMouseOver: "this.style.cursor='pointer'"}) | $('h2').not('div.noexcol h2').attr({ onMouseOver: "this.style.cursor='pointer'"}) | ||
- | $('h2').not('div.noexcol h2'). | + | $('h2').not('div.noexcol h2').next('div').hide() |
$('h2').not('div.noexcol h2').click(function() { | $('h2').not('div.noexcol h2').click(function() { | ||
- | $(this). | + | $(this).next('div').fadeToggle() |
}); | }); | ||
$('h3').not('div.noexcol h2').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>") | $('h3').not('div.noexcol h2').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>") | ||
- | $('h3').not('div.noexcol h2'). | + | $('h3').not('div.noexcol h2').next('div').hide() |
$('h3').not('div.noexcol h2').click(function() { | $('h3').not('div.noexcol h2').click(function() { | ||
- | $(this). | + | $(this).next('div').fadeToggle() |
}); | }); | ||
$('h3').not('div.noexcol h2').attr({ onMouseOver: "this.style.cursor='pointer'"}) | $('h3').not('div.noexcol h2').attr({ onMouseOver: "this.style.cursor='pointer'"}) |
Revision as of 20:31, 23 September 2012