Kamel:J*/Spielwüste

JQuery Klappdings


 Visible. TRIG

 Hidden. TRIG

Inline Test
Lorem   Visible. TRIG  Hidden. TRIG ipsum.

jQuery(".jq_tr").click( function {    var $this = jQuery(this);    var speed = "fast";    if ($this.parents(".jq_k").hasClass("fade_slow"))        speed = "slow";    else if ($this.parents(".jq_k").hasClass("fade_immediate"))        speed = 0;    $this.parents(".jq_k").children(".jq_kd").show(speed);    $this.parents(".jq_kd").hide(speed); });

Akkordeon


 Head 1  Body 1

 Head 2  Body 2

 Head 3 <div class="jq_a" style="display:none;"> Body 3

Inline Test
Test <span class="jq_z fade_immediate"> <span class="jq_h"> <span class="jq_a"> Body 1 <span class="jq_h"> <span class="jq_a" style="display:none;"> Body 2 | Bla
 * Head 1
 * Head 2

jQuery('.jq_z .jq_h').click(function {   var $this = jQuery(this);    var speed = "fast";    if ($this.parents(".jq_z").hasClass("fade_slow"))        speed = "slow";    else if ($this.parents(".jq_z").hasClass("fade_immediate"))        speed = 0;    var $this = jQuery(this);    $this.parents(".jq_z").children(".jq_a").hide(speed);    $this.next(".jq_a").show(speed); });