»
AnglaisFran�aisVietnamien

Imprimer - Saisie de texte dans la barre d'état - JavaScriptBank.com

Version compl�te: jsB@nk » État » État » Saisie de texte dans la barre d'état
URL: https://www.javascriptbank.com/typing-text-in-status-bar.html

Saisie de texte dans la barre d'état © JavaScriptBank.comCet JavaScript types de votre messages dans état bar.

Version compl�te: jsB@nk » État » État » Saisie de texte dans la barre d'état
URL: https://www.javascriptbank.com/typing-text-in-status-bar.html



JavaScript
<SCRIPT language=Javascript>  function initArray(n) {this.length = n; for (var i =1; i <= n; i++) { this[i] = ' ' } } slide = new initArray(2); slide[0]="JavaScriptBank.com" ; slide[1]="Bank of over 2000+ free JavaScripts" ; var delay1 = 1;  var delay2 = 1;  var text = slide[0] + " " ; var str = " " ; var leftmsg = "";  var nextmsg = 0;   function setMessage()  {  if (str.length == 1)  { while (text.substring(0, 1) == " ") { leftmsg += str; str = text.substring(0, 1); text = text.substring(1, text.length); }  leftmsg += str;  str = text.substring(0, 1) ; text = text.substring(1, text.length) ; for (var x = 0; x < 120; x++)  { str = " " + str }; }  else  { str = str.substring(10, str.length) ;} window.status = leftmsg + str; if (text == "") { str = " " ;nextmsg++ ;if (nextmsg > slide.length) { nextmsg = 0; } text = slide[nextmsg] + " " ;leftmsg = "" ;setTimeout('setMessage()',delay2); } else { setTimeout('setMessage()',delay1); } } setMessage();</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->