goldsaibo

funnytitle

Mar 15th, 2021 (edited)
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // code wasn't made by me i jsut needed a place to dump it and i dont know the source. delete this when putting in your carrd
  2. <script type="text/javascript">
  3. function tb8_makeArray(n){
  4. this.length = n;
  5. return this.length;
  6. }
  7. tb8_messages = new tb8_makeArray(3);
  8. tb8_messages[0] = "text";
  9. tb8_messages[1] = "text";
  10. tb8_messages[2] = "text";
  11. tb8_rptType = 'infinite';
  12. tb8_rptNbr = 5;
  13. tb8_speed = 90;
  14. tb8_delay = 2000;
  15. var tb8_counter=1;
  16. var tb8_currMsg=0;
  17. var tb8_tekst ="";
  18. var tb8_i=0;
  19. var tb8_TID = null;
  20. function tb8_pisi(){
  21. tb8_tekst = tb8_tekst + tb8_messages[tb8_currMsg].substring(tb8_i, tb8_i+1);
  22. document.title = tb8_tekst;
  23. tb8_sp=tb8_speed;
  24. tb8_i++;
  25. if (tb8_i==tb8_messages[tb8_currMsg].length){
  26. tb8_currMsg++; tb8_i=0; tb8_tekst="";tb8_sp=tb8_delay;
  27. }
  28. if (tb8_currMsg == tb8_messages.length){
  29. if ((tb8_rptType == 'finite') && (tb8_counter==tb8_rptNbr)){
  30. clearTimeout(tb8_TID);
  31. return;
  32. }
  33. tb8_counter++;
  34. tb8_currMsg = 0;
  35. }
  36. tb8_TID = setTimeout("tb8_pisi()", tb8_sp);
  37. }
  38. tb8_pisi()
  39. </script>
RAW Paste Data