Forum Moderators: martinibuster
Does anyone know a script or code I can use to disable Adsense from showing on my secure (https) pages?
I do have some 2 sets of javascript on my website; 1 to preload images on the top part of the page and another javascript code to load my RSS feed to the page.
I think my only way to do it may to be to write a javascript code (which I have so far been unsucessful at doing). Is that possible?
{if $current_location == $http_location}
Google AdSense Goes Here
{/if}
The problem is I cannot get that to work with Adsense because the Adsense code itself has 2 different javascript codes in it.
Will the above script work? Am I just putting it in wrong? Or do I need a different script all together?
<script type="text/javascript">
{if $current_location == $http_location}
<!--
google_ad_client = "pub-#*$!#*$!#*$!x";
google_alternate_ad_url = "http://www.example.com/";
google_ad_width = xx;
google_ad_height = xx;
google_ad_format = "xx";
google_ad_type = "xx";
//2007-07-10: Image xx
google_ad_channel = "#*$!#*$!xx";
google_color_border = "color";
google_color_bg = "color";
google_color_link = "color";
google_color_text = "color";
google_color_url = "color";
google_ui_features = "rc:0";
//-->
{/if}
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Is the "if statement" in the wrong place?