Webby
Member
I am trying to ad this adblock detect code to my site:
<style>
#veEJgfawLXQc {
display: none;
margin-bottom: 30px;
padding: 20px 10px;
background: #D30000;
text-align: center;
font-weight: bold;
color: #fff;
border-radius: 5px;
}
</style>
<div id="veEJgfawLXQc">
Our website is made possible by displaying online advertisements to our visitors.<br>
Please consider supporting us by disabling your ad blocker.
</div>
<script src="/ads.js" type="text/javascript"></script>
<script type="text/javascript">
if(!document.getElementById('gJuzclCLspFo')){
document.getElementById('veEJgfawLXQc').style.display='block';
}
</script>
But I get this:
Could it be something with my .htaccess file?
<style>
#veEJgfawLXQc {
display: none;
margin-bottom: 30px;
padding: 20px 10px;
background: #D30000;
text-align: center;
font-weight: bold;
color: #fff;
border-radius: 5px;
}
</style>
<div id="veEJgfawLXQc">
Our website is made possible by displaying online advertisements to our visitors.<br>
Please consider supporting us by disabling your ad blocker.
</div>
<script src="/ads.js" type="text/javascript"></script>
<script type="text/javascript">
if(!document.getElementById('gJuzclCLspFo')){
document.getElementById('veEJgfawLXQc').style.display='block';
}
</script>
But I get this:
Could it be something with my .htaccess file?