Guest User

Untitled

a guest
Apr 17th, 2021
4,870
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. function tb8_makeArray(n){
  3. this.length = n;
  4. return this.length;
  5. }
  6. tb8_messages = new tb8_makeArray(3);
  7. tb8_messages[0] = "message here";
  8. tb8_messages[1] = "message here";
  9. tb8_messages[2] = "message here";
  10. tb8_rptType = 'infinite';
  11. tb8_rptNbr = 5;
  12. tb8_speed = 100;
  13. tb8_delay = 2000;
  14. var tb8_counter=1;
  15. var tb8_currMsg=0;
  16. var tb8_tekst ="";
  17. var tb8_i=0;
  18. var tb8_TID = null;
  19. function tb8_pisi(){
  20. tb8_tekst = tb8_tekst + tb8_messages[tb8_currMsg].substring(tb8_i, tb8_i+1);
  21. document.title = tb8_tekst;
  22. tb8_sp=tb8_speed;
  23. tb8_i++;
  24. if (tb8_i==tb8_messages[tb8_currMsg].length){
  25. tb8_currMsg++; tb8_i=0; tb8_tekst="";tb8_sp=tb8_delay;
  26. }
  27. if (tb8_currMsg == tb8_messages.length){
  28. if ((tb8_rptType == 'finite') && (tb8_counter==tb8_rptNbr)){
  29. clearTimeout(tb8_TID);
  30. return;
  31. }
  32. tb8_counter++;
  33. tb8_currMsg = 0;
  34. }
  35. tb8_TID = setTimeout("tb8_pisi()", tb8_sp);
  36. }
  37. tb8_pisi()
  38. </script>
RAW Paste Data