Guest
Public paste!

thenico

By: a guest | Jul 5th, 2007 | Syntax: HTML | Size: 0.90 KB | Hits: 30 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. <!-- image témoin -->
  2. <img src="http://pagead2.googlesyndication.com/pagead/" width="0" height="0" border="0"  id="adblocktest" />
  3.  
  4. <!-- script de détection -->
  5. <script type="text/javascript">
  6. function adblockblock() {
  7.         document.location.href='http://www.virusphoto.com/adblock.htm';
  8. }
  9. function adblocktest(testnumber) {
  10.         abbitem=document.getElementById('adblocktest');
  11.         if(!abbitem){
  12.                 adblockblock();
  13.         } else if (abbitem.style.display == 'none' | abbitem.style.visibility == 'hidden'){
  14.                 adblockblock();
  15.         } else if (testnumber!=1){
  16.                 setTimeout(function(){adblocktest(1);},4000);
  17.         }
  18. }
  19. function doadblocktest(){
  20.         if(adblocktest_orig_onload){adblocktest_orig_onload();}
  21.         setTimeout(adblocktest,1000);
  22. }
  23. adblocktest_orig_onload=window.onload?window.onload:false;
  24. window.onload=doadblocktest;