chris: mehrerer id´s bei getElementById

Beitrag lesen

meine natürlich:

function ScrollDown(speed){
      if(document.getElementById){
           cnt = document.getElementById(prefix+"contnewmenu");
           txt = document.getElementById(prefix+"textnewmenu");
          if(parseInt(txt.style.top) > cnt.offsetHeight - txt.offsetHeight){
           txt.style.top = parseInt(txt.style.top) - speed + "px";
   }
          timerID = setTimeout("ScrollDown("+speed+", '"+prefix+"')",30)
      }
 }