• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

JS Animation im Document

Status
Für weitere Antworten geschlossen.

Nazgul

Neues Mitglied
Hey Leutz

weiß jamnd wie ich den code hier
Code:
<script type="text/javascript">
<!--
var txt=new Array('text');
var txts=txt.length;
var position=1;
var wort=0;
var richtung=1;

function ani_text() {
 window.document.write = txt[wort].substr(0,position)+'_';
 if (richtung==0) { position--; }
 if (richtung==1) { position++; }
 if (position==-1) {
 richtung=1;
 position=0;
 wort++;
 wort=wort%txts;
 }
 if (position==txt[wort].length+10) {
  richtung=0;
  position=txt[wort].length;
 }
 setTimeout("ani_text()",100);
}

ani_title();
// -->
</script>

ins document bekomme ???
 
Werbung:
Status
Für weitere Antworten geschlossen.
Zurück
Oben