FREE CODE Friday, 04.19.2024, 2:19 PM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
۞Forum Statistics۞
NEW TOPPIV
HOT TOPPIC
TOP MEMBERS
NEW MEMBERS
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • shadow text Have(0) reviews faxuhi
  • Beautiful text two Have(0) reviews faxuhi
  • Nice menu with java script <p1> Have(2) reviews faxuhi
  • Mouse Clock Have(1) reviews faxuhi
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • faxuhi[189]Bài
  • mcsnagger0022[0]Bài
  • thinknoodles[0]Bài
  • karaganis888[0]Bài
  • faxuhi [189]Bài
  • mcsnagger0022 [0]Bài
  • thinknoodles [0]Bài
  • karaganis888 [0]Bài
    • Page 1 of 1
    • 1
    Forum » Web Javascript » Text Changing in notepad » Text Changing in notepad
    Text Changing in notepad
    faxuhiDate: Monday, 07.25.2011, 2:37 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    The speed of the typing can be adjusted by raising
    or lowering the number in the setTimeout function.
    -->
    Code
    The speed of the typing can be adjusted by raising  
            or lowering the number in the setTimeout function.  
    -->

    <script language="JavaScript">

    function makeArray()  
    {
       this.length = makeArray.arguments.length
       for (var i = 0; i < this.length; i++)
       this[i+1] = makeArray.arguments[i]
    }

    var fArray = new makeArray;
    fArray[0]="Message 1 goes here. "
    fArray[1]="Message 2 goes here. "
    fArray[2]="Message 3 goes here. "
    fArray[3]="Message 4 goes here. "

    var x = 1;
    var y = 0;
    var msg1 = fArray[y];

    function newsFeed()  
    {
       if (x==msg1.length+1)  
       {
         for (var z=0; z < 7000; 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() ",1);
    }
    </script>

    <body bgcolor=teal link=goldenrod onLoad="newsFeed()">
    <br />
    <font face="Tahoma"><a target="_blank" href="http://www.javascriptfreecode.com/"><span style="font-size: 8pt; text-decoration: none">JavaScript Free Code</span></a></font>

    <form name="form1">
    <textarea wrap=physical rows=10 cols=25 name="news2">
    </form>
    </body>
     
    Forum » Web Javascript » Text Changing in notepad » Text Changing in notepad
    • Page 1 of 1
    • 1
    Search:

    Copyright MyCorp © 2024 Website builderuCoz