Advertisement
Guest User

Multiple URL Redirection Script (a modified meta refresh)

a guest
Sep 27th, 2016
7,190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <script>
  2. var URLlist = [
  3. "http://AnyURLorAffiliateLinkHere.com/example1",
  4. "http://AnyURLorAffiliateLinkHere.com/example2",
  5. "http://AnyURLorAffiliateLinkHere.com/example3",
  6. "http://AnyURLorAffiliateLinkHere.com/example4" // <-- the last URL has no comma
  7. ];
  8. var reDelay = 0000; // <-- time in seconds. 0000 = immediate redirect (0 seconds), 1000 = 1 sec delay, 2000 = 2 sec delay, etc
  9. setTimeout(function(){window.location = URLlist[Math.floor(Math.random() * URLlist.length)];}, reDelay);
  10. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement