»
AnglaisFran�aisVietnamien

Imprimer - Typing Scroller - JavaScriptBank.com

Version compl�te: jsB@nk » Form » Textarea » Typing Scroller
URL: https://www.javascriptbank.com/typing-scroller-textarea.html

Typing Scroller © JavaScriptBank.comCette barres de défilement et les types en vue de sa façon!

Version compl�te: jsB@nk » Form » Textarea » Typing Scroller
URL: https://www.javascriptbank.com/typing-scroller-textarea.html



JavaScript
<script language=JavaScript>var newsText = new Array();newsText[0] = "Cac ban co the dan doan ma nay vao trang web cua minh de tao hieu ung nhu tren";newsText[1] = "Ngoai ra cac ban con co the thay doi noi dung hien thi";newsText[2] = "Chuc cac ban thanh cong !!!";newsText[3] = "Rat han hanh duoc lam quen voi cac doc gia cua E-chip qua dia chi [email protected]";newsText[4] = "Thai Cao Phong"var ttloop = 1;    var tspeed = 50;   var tdelay = 1000; // ------------- Khong chinh sua phan sau ------------- \\var dwAText, cnews=0, eline=0, cchar=0, mxText;function doNews() {  mxText = newsText.length - 1;  dwAText = newsText[cnews];  setTimeout("addChar()",1000)}function addNews() {  cnews += 1;  if (cnews <= mxText) {    dwAText = newsText[cnews];    if (dwAText.length != 0) {      document.news.news2.value = "";      eline = 0;      setTimeout("addChar()",tspeed)    }  }}function addChar() {  if (eline!=1) {    if (cchar != dwAText.length) {      nmttxt = ""; for (var k=0; k<=cchar;k++) nmttxt += dwAText.charAt(k);      document.news.news2.value = nmttxt;      cchar += 1;      if (cchar != dwAText.length) document.news.news2.value += "_";    } else {      cchar = 0;      eline = 1;    }    if (mxText==cnews && eline!=0 && ttloop!=0) {      cnews = 0; setTimeout("addNews()",tdelay);    } else setTimeout("addChar()",tspeed);  } else {    setTimeout("addNews()",tdelay)  }}doNews()</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form name="news"><textarea name="news2" cols=40 rows=4 wrap=virtual></textarea></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->