落伍者站长论坛's Archiver

lbx972 发表于 2006-10-19 18:13

网易的google的广告条,假始自己网站根据格式来改,行不?

<!--google-->
<style type="text/css">
<!--
.adRtext2 a{color:#1f3a87;font-weight:bold;}
.adRtext2{ margin:0 auto; clear:both; width:550px;}
.adRtext2 ul{float:left; width:100%; padding:5px 0 3px;}
.adRtext2 li{ list-style-type:none;  background:url([img]http://cimg2.163.com/auto/img/endpage_i6.gif[/img]) 8px 7px no-repeat; text-align:left; padding:3px 0 3px 16px;font-size:14px;}
.adRtext2 lc{ list-style-type:none; 8px 7px no-repeat; text-align:left; padding:3px 0 3px 16px;}
.adRtext2 .unDot{padding:3px 0 3px 8px; background:;}
.adRtext2 a:hover{color:#bc2931;}
-->
</style>
<script language="JavaScript">
<!--
   function google_ad_request_done(google_ads) {
     /*
      * This function is required and is used to display
      * the ads that are returned from the JavaScript
      * request. You should modify the document.write
      * commands so that the HTML they write out fits
      * with your desired ad layout.
      */
     var s = '';
     var i;
     /*
      * Verify that there are actually ads to display.
      */
     if (google_ads.length == 0) {
       return;
     }
     if (google_ads[0].type="text") {
          if (google_ads.length > 0) {
             /*
              * For text ads, append each ad to the string.
              */
                 s +='<div class="todayCommend">';
                 s +='<div class="title"><h5>Google提供的广告</h5></div>';
                 s +='<div class="adRtext2"><ul>';
             for(i=0; i < google_ads.length; i++) {
                 s +='<li style="width:100%;cursor:hand;" onmouseout="window.status=\'\';return true;" onmouseover="window.status=\'' + google_ads[i].visible_url + '\';return true;" onclick=window.open("' + google_ads[i].url + '")><a href="' + google_ads[i].url + '" onclick="return false">' + google_ads[i].line1 + '</a>';
                 s +='<br /><DIV style="PADDING-TOP: 3px">'+google_ads[i].line2+google_ads[i].line3+'</DIV>';
                 s +='<span style="color:#467902;">'+ google_ads[i].visible_url + '</span></li>';
             }
                 s +='</ul></div></div>';
         }
     }
     document.write(s);
     return;
  }
     google_ad_client = 'ca-netease-rs_js';
     google_ad_channel = 'news';
     google_ad_output = 'js';
     google_max_num_ads = '3';
//     google_page_url = 'http://lady.163.com';
     google_language = 'zh-CN';
     google_encoding = 'GB2312';
     google_safe = 'high';
     google_adtest = 'off';
//     google_hints = '';
     google_gl = 'CN';
//     google_kw = 'flowers, red roses';
//     google_kw_type = 'broad';
//     google_contents = '';
     google_ad_section = 'default';
  // -->
</script>
<!--
  /*
   * The JavaScript returned from the following page uses
   * the parameter values assigned above to populate an array
   * of ad objects. Once that array has been populated,
   * the JavaScript will call the google_ad_request_done
   * function to display the ads.
   */
-->

xuexiaowei 发表于 2006-10-19 18:20

看一下 网易的演示

wplwpl2005 发表于 2006-10-19 18:41

个人感觉不能乱改人家制定好的代码吧?
网易是大站,可能有先例

theabc 发表于 2006-10-19 19:08

网易是跟GG有签约的,你丫的欠K你就改....

czyes 发表于 2006-10-19 20:37

[quote]原帖由 [i]theabc[/i] 于 2006-10-19 19:08 发表
网易是跟GG有签约的,你丫的欠K你就改.... [/quote]

mybuluo 发表于 2006-10-19 21:03

[quote]原帖由 [i]theabc[/i] 于 2006-10-19 19:08 发表
网易是跟GG有签约的,你丫的欠K你就改.... [/quote]:ohh:

dfhj 发表于 2006-10-19 21:05

等你是大客户的时候再说吧

水若寒寒 发表于 2006-10-19 23:22

[quote]原帖由 [i]theabc[/i] 于 2006-10-19 19:08 发表
网易是跟GG有签约的,你丫的欠K你就改.... [/quote]

lbx972 发表于 2006-10-20 01:35

原来这样子,我觉得他在网易的样式非常好看呢,呵呵

mobil 发表于 2006-10-20 01:37

你的站有什么地方能和人家163的比.不是一个档次的就不要想了

lbx972 发表于 2006-10-20 11:59

对对对

西子宜 发表于 2006-10-21 00:08

:lol:

飘叶一方 发表于 2008-6-7 12:02

不公平啊

ASP0000 发表于 2008-6-11 13:36

大客户。代码是定制的。

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.