Hi,
if (document.getElementById('tab'+i).className == 'tab active') {
var ta = document.getElementById('tab'+i).className.replace(/ active/g,""); /* tmp-var a (kein replace im cmd mgl) */
  
Wenn du auf genau einen, fixen Wert abfragst, wieso nutzt du dann eine Mustersuche, um von diesem dir total und bis ins kleinste bekannten Wert etwas zu entfernen - anstatt gleich den "Rest" als festen Wert zuzuweisen?  
  
>     ~~~javascript
document.getElementById('n'+id).className = tc + ' show';  /*<-- hier scheints zu haken */  
>     }  
>   document.getElementById(id).className = p +' '+ child; /*<-- hier scheints zu haken */
</hilfe/charta.htm#tipps-fuer-fragende> /*<-- hier hakt's auf jeden fall */
MfG ChrisB
-- 
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
  “Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
 nicht angemeldet
 nicht angemeldet