The following script allows a user to display information (or an alternative advertising message in the browser) when a popup ad blocker, such as Adblock Plus (Firefox Add-On) or WebWasher is enabled. The features of this script are the original code remains unchanged in Advertising, the advertisement will be replaced only if an ad blocker is enabled and you can define a alternative message using the HTML code. The scrip for the same is : First, the original advertising code in a DIV container shipped:
PHP Code:
<div id="webbanner">
<script type="text/javascript"> <! --
google_ad_client = "pub-1234567890";
/ * 468x60, AutoGenerated 22.05.09 * /
google_ad_width = 468;
google_ad_height = 60;
//-->
</ script>
<script type = "text / javascript"
src = "http://thewebsitename">
</ script>
<noscript>
If Javascript is disabled in your browser (eg through the NoScript Firefox addon)
This text will be displayed instead. Alternatively, HTML-code
are used, so that a graphic, a link or an iframe is issued.
</ noscript>
</ div>
Bookmarks