I am trying to show a div if visitors are using adblock.

I was originally using a background-image, but most users actually see that message even if they aren't blocking ads, for a second or two, before the ad initializes.

I've searched the web and this site and it seems javascript is the best solutions. The only issue I am having is that it seems every answer here is missing a bit of key info, for nubs like myself.

So I am curious, how would I show a div in place of an adsense ad, specifically? 

What I have been trying so far, which has had a bit of success is seeing if the ad container has no height and then displaying a popup (got the code from a tutorial online). But I don't want a popup just to display a div in the same spot as the ad.

```
<script type="text/javascript">
    function TestPage() {
        if ($('.ad').height() == 0)
             $('.adblocked').show();

    }

    $(TestPage);
</script>

```

The above doesn't work to show the div, but it does detect when the ad are blocked, just having trouble showing that div `.adblocked` in it's place.