I just saw a major site use adsense, but noticed this strange coding <script language="JavaScript"> <!-- function google_ad_request_done(google_ads) { // Proceed only if we have ads to display! if (google_ads.length < 1 ) return; // Display ads in a table document.write("<table class=\"adsense\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr valign=top>"); // Print "Ads By Google" -- include link to Google feedback page if available document.write("<td align=\"center\" class=\"adgoog\">"); if (google_info.feedback_url) { document.write("<a href=\"" + google_info.feedback_url + "\">Ads by Google</a>"); } else { document.write("Ads by Google"); } document.write("</td></tr>"); // For text ads, display each ad in turn. // In this example, each ad goes in a new row in the table. if (google_ads[0].type == 'text') { for(i = 0; i < google_ads.length; ++i) { document.write("<tr><td class=\"adsense_text\" valign=\"top\"><div style=\"width: 108px; overflow: hidden;\">" + "<a class=\"adsense\" onmouseover=\"window.status='" + google_ads[i].visible_url + "'; return true\" onmouseout=\"window.status=''; return true\" href=\"" + google_ads[i].url + "\">" + google_ads[i].line1 + "</a><br><a class=\"adtext\" onmouseover=\"window.status='" + google_ads[i].visible_url + "'; return true\" onmouseout=\"window.status=''; return true\" href=\"" + google_ads[i].url + "\">" + google_ads[i].line2 + " " + google_ads[i].line3 + "</a><br>" + "<a class=\"adurl\" onmouseover=\"window.status='" + google_ads[i].visible_url + "'; return true\" onmouseout=\"window.status=''; return true\" href=\"" + google_ads[i].url + "\">" + "" + google_ads[i].visible_url + "</a></div></td></tr>"); } } // Finish up anything that needs finishing up document.write ("</table>"); } --> </script> Code (javascript): Is this not against TOS?
Then that explains why their Adsens has mouseover effect and always high paying keywords, whatever the topic may be about.
What is the site?? I am just trying to figure out how this violates TOS (and I suspect my javascript ignorance is showing). As far as I can make out this does nothing to the adsense code itself; rather it checks to see if there is an ad and then contracuts a container for that ad. This is something I would love to do on my sites simply because I have three adsense ads and then, for the next ten items, a piece of blank space.
As lingeriediva said.... at a quick glance, it appears to be merely JS packaging code to determine delivery conditions for the Adsense JS - and not actually modifying the Adsense code. As others mentioned, if the site is a premium publisher with 20M+ views per month, they can easily have negotiated custom TOS with G for their code presentation. Rob
It is also possible that they contacted Google about this as I beleive in the TOS if you have permission from Google you can modify the script to better fit your site.
Well what this script does is highligh the ads and give the ads a roll over effect. The site is big, but nog 20M+