SHARE
TWEET

Untitled

a guest Mar 26th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function type(){
  2.   var j = 0;
  3.   var strOut="";
  4.   for(j;j<speed;j++){
  5.       if (i < txt.length)
  6.       {
  7.         strOut+=txt.charAt(i);
  8.         document.getElementById("demo").scrollTop = document.getElementById("demo").scrollHeight;
  9.         i++;
  10.       } else break;
  11.   }
  12.   document.getElementById("demo").innerHTML += strOut;
  13.  
  14.   if (i < txt.length) {
  15.       setTimeout(type,1);
  16.   }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top