XSLT Google Adsense Bug Fix

Posted on: Sep-17-2008 06:43:28 PM by Stevan Ljuljdurovic
  • Categories:
  • Null

Some of you using XSLT may have noticed that your google ad's are not displaying, well here is a quick and effective solution!

Your google script will look like this


<script type="text/javascript"><!--
google_ad_client = "pub-9y124192840123";
google_ad_slot = "192884812123";
google_ad_width = 336;
google_ad_height = 280;
-->
</script>



Replace the html comments with XSLT comments. <!-- becomes <xsl:comment> . and --> becomes  </xsl:comment>. Your final result will look like this:


<script type="text/javascript"><!--
<xsl:comment>
google_ad_client = "pub-91578019823752";
google_ad_slot = "124525163";
google_ad_width = 336;
google_ad_height = 280;
</xsl:comment>
</script>

Hope this helps!

 

Your Ad Here

Related Information:


Comments

Be the first to post a comment!

Post a comment!

Full Name:
Email Address:

Website:
2+3=
Leave a Message:
Design and Content © 2008 Stevan Ljuljdurovic

Admin Login

Whats new?

Wonderful news! I have made some new websites.

HpArea which is a website that is based on user contributed health related information.

Anonymous email sender which is used to send emails from anyone to anyone!

Login!

Name:
Password:
Create Account!
Go ahead, Create an account! Even though you can't do anything with it now, there might be a use for it in the future!

Quote

Intellectuals solve problems; geniuses prevent them.
Albert Einstein
Your Ad Here

Friends

yes