BrU32

JS Invisible URL Hit Cycle SRC

Jul 23rd, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script>
  4. var opainc=0.2;
  5. var counterrep=0;
  6. var banners=['https://s0.2mdn.net/viewad/2070351/728x90_MobileDev.jpg','https://s0.2mdn.net/viewad/2070351/A+Mind+For+Code_728x90.jpg'];
  7. var counter=0;
  8. function run(){
  9. setInterval(cycle,2000);
  10. }
  11. function cycle(){
  12. counter++;
  13. if(counter==banners.length) {
  14. counter=0;
  15.  
  16. }
  17. document.getElementById("img").src=banners[counter];
  18. counterrep++;
  19. document.body.innerHTML=(document.body.innerHTML)+'<br>URL #:'+counterrep+'<br>';
  20. }
  21. </script>
  22. <body onload="script:run();">
  23. <iframe id="img" style="width:0;height:0;opacity:0.0;">
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment