|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
Use coupon "forum" for 50% Off! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Noogle
![]() Join Date: Sep 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
nice google ads color cheat
a lot of sites using that code:
Code:
<script language="JavaScript" type="text/javascript">
<!--
function google_ad_request_done(google_ads) {
// Proceed only if we have ads to display!
if (google_ads.length < 1 ) { return; }
// For text ads, display each ad in turn.
if (google_ads[0].type == 'text') {
var first_ad_unit = '', second_ad_unit = '';
for(var i = 0; i < google_ads.length; ++i) {
if (i == 0) {
first_ad_unit += '<div id="google-adsense-banner">';
first_ad_unit += '<table width="468" height="60" cellspacing="0" cellpadding="0" border="0"><tr>';
}
if (i <= 1) {
first_ad_unit += '<td nowrap="nowrap" style="padding: 0 10px;" align="left">'
+ '' + google_ads[i].line1 + '
'
+ '<a href="' + google_ads[i].url + '" class="desc">' + google_ads[i].line2;
if (google_ads.length > 1) { first_ad_unit += '
'; } else { first_ad_unit += ' '; }
first_ad_unit += google_ads[i].line3 + '</a>';
if (google_ads.length == 1) { first_ad_unit += '
' + google_ads[i].visible_url + ''; }
first_ad_unit += '<>';
}
if (((i == 0) && (i+1) == google_ads.length) || i == 1) {
first_ad_unit += '<>';
// Print "Ads By Google" -- include link to Google feedback page if available
first_ad_unit += '<tr><td width="100%" align="right" valign="bottom"';
if (google_ads.length > 1) { first_ad_unit += ' colspan="2"'; }
first_ad_unit += '>';
if (google_info.feedback_url) { first_ad_unit += '<a href="' + google_info.feedback_url + '" class="adsby">'; }
first_ad_unit += 'Ads By Google';
if (google_info.feedback_url) { first_ad_unit += '</a>'; }
first_ad_unit += '<><>';
first_ad_unit += '</table>';
first_ad_unit += '</div>';
}
if (i == 2) {
second_ad_unit += '<div id="google-adsense-textlinks">';
// Print "Ads By Google" -- include link to Google feedback page if available
second_ad_unit += '<div align="center">';
if (google_info.feedback_url) { second_ad_unit += '<a href="' + google_info.feedback_url + '" class="adsby">'; }
second_ad_unit += game_name + ' ';
second_ad_unit += 'Ads By Google';
if (google_info.feedback_url) { second_ad_unit += '</a>'; }
second_ad_unit += '</div>
';
}
if (i >= 2) {
second_ad_unit += '' + google_ads[i].line1 + '
'
+ '' + google_ads[i].line2 + ' ' + google_ads[i].line3 + ''
+ ' - ' + google_ads[i].visible_url + '
';
}
if (((i+1) == google_ads.length) && (i >= 2)) {
second_ad_unit += '</div>';
}
}
document.getElementById("google-frontpage-banner").innerHTML += first_ad_unit;
document.getElementById("google-frontpage-textlinks").innerHTML += second_ad_unit;
}
}
// Ad Vars
google_ad_client = "pub-your number";
google_ad_output = "js";
google_feedback = "on";
google_max_num_ads = 6;
google_ad_type = "text";
-->
</script>
<script language="JavaScript" type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
also see some ads styles: Code:
#google-adsense-banner {
color: #000;
text-decoration: none;
}
#google-adsense-banner a.adsby:link, #google-adsense-banner a.adsby:visited, #google-adsense-banner a.adsby:hover, #google-adsense-banner a.adsby:active {
color: #000;
font-size: 10px;
font-weight: normal;
text-decoration: underline;
}
#google-adsense-banner a.subject:link, #google-adsense-banner a.subject:visited, #google-adsense-banner a.subject:hover, #google-adsense-banner a.subject:active {
font-weight: bold;
font-size: 12px;
text-decoration: underline;
}
#google-adsense-banner a.desc:link, #google-adsense-banner a.desc:visited, #google-adsense-banner a.desc:hover, #google-adsense-banner a.desc:active {
color: #000;
font-size: 11px;
font-weight: normal;
text-decoration: none;
}
#google-adsense-textlinks {
color: #000;
text-decoration: none;
}
#google-adsense-textlinks a.adsby:link, #google-adsense-textlinks a.adsby:visited, #google-adsense-textlinks a.adsby:hover, #google-adsense-textlinks a.adsby:active {
color: #640909;
font-weight: bold;
font-size: 12px;
text-decoration: none;
}
#google-adsense-textlinks a.subject:link, #google-adsense-textlinks a.subject:visited, #google-adsense-textlinks a.subject:hover, #google-adsense-textlinks a.subject:active {
color: #640909;
font-weight: bold;
font-size: 12px;
text-decoration: none;
}
#google-adsense-textlinks a.desc:link, #google-adsense-textlinks a.desc:visited, #google-adsense-textlinks a.desc:hover, #google-adsense-textlinks a.desc:active {
color: #000;
font-size: 12px;
font-weight: normal;
text-decoration: none;
}
|
|
|
|
|
Sponsored Links
|
|
|
|
#2 (permalink) |
|
Noogle
![]() Join Date: Sep 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
look script in action:
http://www.borzou.com/stories/2005/20050831.mht - at the bottom http://www.worldofwconline.com/ - look on center - really nice lol http://www.starwarsgalaxiesonline.com/ http://www.cityofheroesonline.com/ http://www.lineage2-online.com/ and much more I can easy find more more sites using that method Google accept it |
|
|
|
|
|
#3 (permalink) |
|
Noogle
![]() Join Date: Sep 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
and next site :]
look menu on the right site, that ads is a god ^_^ http://www.einnews.com/centraleurope/ |
|
|
|
|
|
#7 (permalink) | |
|
Googler
![]() |
Quote:
take care |
|
|
|
|
|
|
#10 (permalink) |
|
Noogle
![]() |
Login to your account then edit the AdSense code, ex: http://searchit.co.nr
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google Talk Logo Color | PepperMinty | Graphics Design Forum | 0 | 08-12-2006 09:12 PM |
| Google Help:Cheat Sheet | kcmandava | All About Google | 0 | 11-28-2005 10:17 PM |
| Google -- Alternative Color Schemes! | icon kid | All About Google | 2 | 08-04-2005 03:50 PM |
| Google Help:Cheat Sheet | kcmandava | All About Google | 0 | 01-01-1970 10:45 AM |