homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

Anyone modify the JS to validate in W3C...

 8:36 pm on Jul 1, 2003 (gmt 0)

The JS won't validate for HTM 4.0, and the guys at G say their working on one that will, but I can go ahead and change it myself.
Has anyone done this already and is willing to share it?



 9:03 pm on Jul 1, 2003 (gmt 0)

What errors are you getting from the validator?


 9:49 pm on Jul 1, 2003 (gmt 0)

I believe there are two errors that you'll run into and they are duplicates. This fixes it...

<script type="text/javascript">

The script language attribute is now deprecated. So replace the script call with the above and you should be good to go.

Here is an example of the script that validates...

<script type="text/javascript">
google_ad_client = 'pub-****************';
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = '120x600_as';
// --></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>


 9:59 pm on Jul 1, 2003 (gmt 0)

<edit>Nevermind, the above should take care of the errors.


 10:19 pm on Jul 1, 2003 (gmt 0)

Thanks P1, I'll try that.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved