Imitation typing effect of JS verbatim message text _ text effects

Source: Internet
Author: User
<textarea id="runcode100"><title> Verbatim message text </title> <body onload= "newsFeed ()" > <script language= "JavaScript" > function Makearray () {this.length = MakeArray.arguments.length for (var i = 0; i < this.length; i++) this[i+1] = ma Kearray.arguments[i]} var farray = new Makearray; Farray[0]= "October 1, 1949,"; Farray[1]= "The People's Republic of China Grand establishment!" "Farray[2]=" from this ... "Farray[3]=" The Chinese people stood up and moved! "var x = 1; var y = 0; var msg1 = farray[y]; function NewsFeed () {if (x==msg1.length+1) {for (Var z=0; z < 70000; z++); Y+=1; if (Y > 3) y=0; Document.form1.news2.value= '; MSG1 = Farray[y]; x=0; } document.form1.news2.value=msg1.substring (0,x); X+=1; SetTimeout ("NewsFeed ()", 200); } </script> <form name= "Form1" > <textarea wrap=physical rows=3 cols=25 name= "News2" > </TEXTAREA&G T </form> </body></textarea>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.