Shnepsey Posted December 10, 2015 Share Posted December 10, 2015 (edited) Hi, I have noticed that webflake has advertisements, i was wondering what would happen if i turned on an adblocker and noticed that it's asking me to turn it off. how can I do the same thing my site? here's a picture Edited December 11, 2015 by Shnepsey Link to comment Share on other sites More sharing options...
0 Cookie Monster Posted January 5, 2016 Share Posted January 5, 2016 So how about this<!DOCTYPE html> <html> <head> <style type="text/css"> .innocent-class { background: url(http://www.google.com/images/logos/ps_logo2.png); width: 240px; height: 400px } .justForTesting, .advertise_ads { width: 240px; height: 400px; background: #fff } </style> </head> <body> <div class="innocent-class"> <!-- just don't call it "advertContainer" :) --> <div class="advertise_ads justForTesting"> advert here! </div> </div> </body> </html>When Adblock Plus finds an element with a class (for example) .advertise_ads, it will hide that element.If it does, the "please don't block my ads!" background-image (in this case, the Google logo) from the parent element will be visible.If the advert isn't blocked, the advert will cover the replacement image.Try changing advertise_ads to something else such as sdpfjsdfjp, and the advert will be visible. 1 Liked what i posted remember to feed me a cookie ->Or you can add a cookie to my Link to comment Share on other sites More sharing options...
1 Shnepsey Posted December 11, 2015 Author Share Posted December 11, 2015 Anyone ? Link to comment Share on other sites More sharing options...
0 titcrunch Posted December 11, 2015 Share Posted December 11, 2015 just create a bloc in page application and add it where you would Best Regards Titcrunch French webdesigner in camel Design, Support, help and tutorials in : Forum Camel Design. Link to comment Share on other sites More sharing options...
0 Shnepsey Posted December 11, 2015 Author Share Posted December 11, 2015 just create a bloc in page application and add it where you wouldWhat do you mean? and what I am really wondering about is how can I make such a message pop up if the users turn on their ad blocker? Link to comment Share on other sites More sharing options...
0 Shnepsey Posted December 14, 2015 Author Share Posted December 14, 2015 Bump... Link to comment Share on other sites More sharing options...
0 Shnepsey Posted December 15, 2015 Author Share Posted December 15, 2015 +++++++++++++ Link to comment Share on other sites More sharing options...
0 Hayyam Posted December 16, 2015 Share Posted December 16, 2015 Only css broWidth, height, background. And adsense banner. Link to comment Share on other sites More sharing options...
0 Shnepsey Posted December 17, 2015 Author Share Posted December 17, 2015 Only css broWidth, height, background. And adsense banner.well, i created the block and added the adsense code but once i turn on my adblocker it won't write what it does here in webflake, it just disappears. Link to comment Share on other sites More sharing options...
0 Shnepsey Posted December 18, 2015 Author Share Posted December 18, 2015 +++++++++++++++ Link to comment Share on other sites More sharing options...
0 titcrunch Posted December 18, 2015 Share Posted December 18, 2015 man search a little on google is just a javascript for bypass adblock Best Regards Titcrunch French webdesigner in camel Design, Support, help and tutorials in : Forum Camel Design. Link to comment Share on other sites More sharing options...
0 Niresh12495 Posted December 18, 2015 Share Posted December 18, 2015 (edited) <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 December 18, 2015 by Stake™ Removed our link. Link to comment Share on other sites More sharing options...
0 Shnepsey Posted December 20, 2015 Author Share Posted December 20, 2015 (edited) <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: *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 December 20, 2015 by Shnepsey Link to comment Share on other sites More sharing options...
0 Shnepsey Posted December 24, 2015 Author Share Posted December 24, 2015 (edited) Still need help here.. Edited December 24, 2015 by Shnepsey Link to comment Share on other sites More sharing options...
0 Shnepsey Posted December 25, 2015 Author Share Posted December 25, 2015 (edited) Anyone.. ? Edited December 25, 2015 by Shnepsey Link to comment Share on other sites More sharing options...
0 Shnepsey Posted December 29, 2015 Author Share Posted December 29, 2015 Still need help with this one.. Link to comment Share on other sites More sharing options...
Question
Shnepsey
Hi,
I have noticed that webflake has advertisements, i was wondering what would happen if i turned on an adblocker and noticed that it's asking me to turn it off.
how can I do the same thing my site?
here's a picture
Edited by ShnepseyLink to comment
Share on other sites
26 answers to this question
Recommended Posts