var string="ª¬ºA¦C¶]°¨¿O"; var startpos = 80 - string.length; function scroll() { var space = " "; var limplus = 80 - string.length; var limminus = 0 - limplus; var w_string = string; startpos--; if (startpos <= limplus && startpos >= limminus) { for (var i=1; i<Math.abs(startpos); i++) w_string = space + w_string; } else { startpos = limplus; for (i=1; i<Math.abs(startpos); i++) w_string = space + w_string; } window.status = w_string; setTimeout("scroll()", 200); }