I have 2 sets of banner code for displaying banners:
1) Ad server code which gets blocked by AdBlock 2) Plain HTML banner insertion which AdBlock does not block
My questions is:
How can I use Javascript (or something else, for that matter) to insert the plain Javascript banner code if AdBlock is detected.
For reference, I found this AdBlock detection code:
document.write('<div id="tester" style="display:none">an advertisemen</div>');
<script type="text/javascript" src="advert.js"></script>
<script type="text/javascript">
if (document.getElementById("tester") == undefined)
{
document.write(' TEXT TO DISPLAY IF ADBLOCK IS ACTIVE');
}