Welcome to WebmasterWorld Guest from 54.242.173.65

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

Anyone modify the JS to validate in W3C...

...htm4.0?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2001
posts:2044
votes: 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 July 1, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 18, 2003
posts:827
votes: 0


What errors are you getting from the validator?
9:49 pm on July 1, 2003 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 27, 2001
posts:12169
votes: 55


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 July 1, 2003 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 27, 2001
posts:12169
votes: 55


<edit>Nevermind, the above should take care of the errors.
10:19 pm on July 1, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2001
posts:2044
votes: 0


Thanks P1, I'll try that.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members