I recently got this little script that will detect if someone visiting my site has adblock enabled. It will detect this by seeing if the ad container has no ad in it, or in other words, the height is 0. Then, it will give a little custom message in place of the ad, where i tell them to kindly disable adblock on my site to support me. So heres how it goes. my advertisement is like this : <div id="ads_left"> <--ad code goes here--> </div> Now at the bottom of my site I put this script : <script type="text/javascript"> var ads = new Array('ads_left'); var msg = 'message goes here'; onload=function() { for(i in ads){ el = document.getElementById(ads); if(el){ if (el.offsetHeight == 0){ el.innerHTML = msg; } } } } </script> Now....this works and all, but the problem is, I dont want to put a message, ie, a text message. Rather, I want to show an image which i have placed on my sites root so im guessing the thing i would have to change is ... var msg = 'message goes here';