daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 11th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (document.addEventListener) {
  2.     document.addEventListener("DOMContentLoaded", function() {
  3.         loaded();
  4.     });
  5. } else if (document.attachEvent) {
  6.     document.attachEvent("onreadystatechange", function() {
  7.         loaded();
  8.     });
  9. }
  10.  
  11. function loaded() {
  12.  
  13.     setInterval(loop, 600);
  14.  
  15. }
  16.  
  17. var x = 0;
  18.  
  19. var titleText = [ "S", "Sa", "San", "Sant", "Santa", "SantaP", "SantaPi", "SantaPiM"];
  20.  
  21. function loop() {
  22.  
  23.     document.getElementsByTagName("title")[0].innerHTML = titleText[x++%titleText.length];
  24.  
  25. }
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