--- alx-src/branches/alx-web-060/show.php 2011/07/06 14:13:15 2605 +++ alx-src/branches/alx-web-060/show.php 2011/07/06 14:15:18 2606 @@ -305,6 +305,7 @@ $.ajax({type:""+typ+"",url:$url[0],data:$url[1],cache:false,success:function(data){ alert(data); }}); } +/* ignore this atm, not always working, sometime open does not work function openclose(nummer, act) { var bild = document.images['sch_bild_'+nummer]; @@ -316,6 +317,40 @@ }); 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 openclose(nummer, act) + { + var bild = document.images['sch_bild_'+nummer]; + 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); + } function showhelp(name) { window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); }