Results 1 to 1 of 1

Thread: Script to stop users with ad blocking software.

  1. #1
    Join Date
    Nov 2014
    Location
    Toronto, Canada
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Script to stop users with ad blocking software.

    Is it possible to create a script we could all use on our websites that would direct users to a page explaining why?
    My thinking is to use elements of adblocks list https://easylist-downloads.adblockplus.org/easylist.txt

    If we create a dummy div and put something from adblocks list they would not be able to get around this without hurting their ad blocking capabilities.
    Code:
    <div id="#-ad-banner." height="1px">
    <iframe width="360" height="2" src="//www.y.com/-ad-banner." frameborder="0" allowfullscreen></iframe>
    </div>
    
    
    <script type="text/javascript">
            jQuery(document).ready(function(){
                if (jQuery('#-ad-banner.').height() == 0) {
                    window.location = 'http://WHY???';
                }
            });
    </script>
    I cannot get this idea to work. Anyone have a solution.

    Thanks Richard
    Last edited by RichardH; 01-10-2015 at 06:08 PM. Reason: Formatting

Similar Threads

  1. Which eCommerce software / Shopping cart software is reliable and well ?
    By naremkim in forum Looking for such a script or service
    Replies: 7
    Last Post: 06-13-2014, 04:58 AM
  2. Replies: 6
    Last Post: 04-06-2010, 10:12 PM
  3. Replies: 4
    Last Post: 03-02-2006, 02:13 AM
  4. Replies: 0
    Last Post: 10-16-2005, 11:23 PM
  5. Stop a embedded sound with a link (not with a stop-button)
    By pepito in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-16-2005, 11:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •