var msg = "ゆっくりウインドウショッピングをご堪能下さい。"; var delay = 100; var pos = 100; function scroll_status() { setTimeout("scroll_status()", delay); var out = ""; if (pos >= 0) { for (c = 0; c < pos; c++) { out += " "; } out += msg; } else { out = msg.substring(-pos, msg.length); } pos = (-pos > msg.length) ? 100 : pos - 1; window.status = out; } scroll_status();