Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var scrollCount = 0;
  2. var chickens = false;
  3. function reDirect() {
  4.   if(!chickens) {
  5.     chickens = true;
  6.     setTimeout("location.href = 'http://getclucky.ytmnd.com/';",100);
  7.   }
  8. }
  9. function roll() {
  10.   x = Math.ceil(Math.random() * 100);  // change 86 to 2 for your initial test
  11.   if(x <= 5 && (document.referrer == 'http://mortus.no-ip.org/')) {
  12.     reDirect();
  13.   } else {
  14.     setTimeout("reDirect();",59900);
  15.   }
  16. }
  17. function onScroll() {
  18.     scrollCount++;
  19.     if(scrollCount > 100) {
  20.       alert('The scroll wheel would thank you if you stopped please.');
  21.       scrollCount = 0;
  22.     }
  23. }
  24. window.onscroll = onScroll;
  25. document.onload = function() {
  26.   warn = document.getElementById("warning")
  27.   alert(warn);
  28.   if(warn != null) {
  29.     warn.onclick = function() {
  30.       this.style.color='#00CC00';
  31.       this.innerHTML="You have one minute :O";
  32.       reDirect();
  33.     }
  34.   }
  35. };
  36. roll();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement