var Text = "Hallo und Herzlich Willkommen";
var Breite = 100;
var TextLaenge = Text.length;
var Position = 1 - Breite;

function StatusLauftext () {
    Position++;
    var Textzustand = " ";
    if (Position == TextLaenge) {
        Position = 1 - Breite;
    }
    if (Position < 0) {
        for ( var Zaehler = 1; Zaehler <= Math.abs (Position); Zaehler++) {
            Textzustand = Textzustand + " ";
        }
        Textzustand = Textzustand + Text.substring (0,Breite-Zaehler + 1);
    } else {
        Textzustand = Textzustand + Text.substring (Position,Breite+Position);
    }
    window.status = Textzustand;
    setTimeout ("StatusLauftext()",100);
}
