»
EnglishFrenchVietnamese

Print - Scrolling Text in status bar - JavaScriptBank.com

Full version: jsB@nk » Status » Status » Scrolling Text in status bar
URL: https://www.javascriptbank.com/scrolling-text-in-status-bar.html

Scrolling Text in status bar © JavaScriptBank.comYou can use this JavaScript to change status by scrolling your favorite messages in status bar from right to left.

Full version: jsB@nk » Status » Status » Scrolling Text in status bar
URL: https://www.javascriptbank.com/scrolling-text-in-status-bar.html



JavaScript
<SCRIPT><!--function scrollit(seed) {var m1 = "Hope you've enjoyed your stay here!";var m2 = " JavaScriptBank.com. Your ultimate";var m3 = " source for JavaScripts!";var m4 = "";var msg=m1+m2+m3+m4;var out = " ";var c = 1;if (seed > 100) {seed--;cmd="scrollit("+seed+")";timerTwo=window.setTimeout(cmd,100);}else if (seed <= 100 && seed > 0) {for (c=0 ; c < seed ; c++) {out+=" ";}out+=msg;seed--;window.status=out;cmd="scrollit("+seed+")";timerTwo=window.setTimeout(cmd,100);}else if (seed <= 0) {if (-seed < msg.length) {out+=msg.substring(-seed,msg.length);seed--;window.status=out;cmd="scrollit("+seed+")";timerTwo=window.setTimeout(cmd,100);}else {window.status=" ";timerTwo=window.setTimeout("scrollit(100)",75);}}}//--></SCRIPT>