Jump to content
WebFlake
  • 0

Adblock message


Shnepsey

Question

Recommended Posts

  • 0
<div class="advertisementseventwoeight">
You Ad code here
</div>
<style>
.advertisementseventwoeight {
background-image: url(http://yoururl.com/imagebank/image/picture.png);
text-align: center;
}
</style>

You must host your own image in your server

Edited by Stake™
Removed our link.
Link to comment
Share on other sites

  • 0
<div class="advertisementseventwoeight">
You Ad code here
</div>
<style>
.advertisementseventwoeight {
background-image: url(http://yoururl.com/imagebank/image/picture.png);
text-align: center;
}
</style>

You must host your own image in your server

Thank you but it doesn't work properly..

A) when I turn on my ads blocker it wont show the picture in the background..

B) when I turn off my ads blocker, it shows the ad & the background but not entirely, it's like it's cutting the picture exactly where the ad is placed and continues with the picture at the end of the ad.

 

Picture:

28cj3wk.jpg

*Yes the size of the background picture is 728x90

*you can see, it starts the sentence right there where the arrow is pointing to ("Please disable your ad blocker")

Edited by Shnepsey
Link to comment
Share on other sites

  • 0

Html:

<div id="advertisement">ad code here</div>
JS:
setTimeout(function(){
    if($("#advertisment").css('display')=="none")
    {
        $('body').html("We noticed you have an active Ad Blocker. Example.com is ad funded, we promise our ads are of high quality and are unobtrusive. The best help you could provide to keep us running, is to whitelist us in your ad blocker. Thanks!");
    }
},3000);

where am I supposed to put this JS ? putting it in a block didn't do much..

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...