--- alx-src/branches/alx-web-060/show.php 2011/07/06 10:28:40 2599 +++ alx-src/branches/alx-web-060/show.php 2011/07/06 10:32:27 2600 @@ -297,33 +297,11 @@ var absatz = document.all['sch_absatz_'+nummer].style; var senden = false; - if(bild.title == 'OPEN') - { - if(act<=1) - { - absatz.visibility = 'visible'; - absatz.position = ''; - bild.title = 'CLOSE'; - bild.src = 'pics/minus.gif'; - senden = true; - act = 0; - } - } - else - { - if(act>=1) - { - absatz.visibility = 'hidden'; - absatz.position = 'absolute'; - bild.title = 'OPEN'; - bild.src = 'pics/plus.gif'; - senden = true; - act = 2; - } - } - - if(senden) sendopenclose(nummer,act); - } + $("#sch_absatz_"+nummer).toggle(0, function(){ + if($(this).css("display")=="none"){$("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'});}else{$("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'});} + }); + if(act<=1){ $("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'}); }else{ $("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'}); }; + } function showhelp(name) { window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); }