Simple Machines Community Forum

SMF Support => Language Specific Support => 中文 (Chinese) => Topic started by: yj98 on November 10, 2006, 05:28:42 AM

Title: 在页面顶部菜单右侧空白处增加google ADS
Post by: yj98 on November 10, 2006, 05:28:42 AM
只是觉得菜单右侧空白浪费了可惜. :D

index.template.php

查找:
<td class="maintab_' , $last , '">&nbsp;</td>

在下面增加:
<td><div style="position:relative;left:10px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2972203031917077";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel = "";
google_color_border = "6081a0";
google_color_bg = "E5E6E8";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";

//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</td>


完成, 图例:
(http://www.szno.com/forum/index.php?action=dlattach;topic=32.0;attach=16;image)
Title: Re: 在页面顶部菜单右侧空白处增加google ADS
Post by: 觉悟的乌鸦 on June 23, 2007, 11:58:54 PM
其实在版权的上面加个层放广告 放友情连接都不错``
Title: Re: 在页面顶部菜单右侧空白处增加google ADS
Post by: keithsk on July 01, 2007, 08:36:57 PM
HI多謝樓主,我現在明白得多左.放廣告地點好好.
Title: Re: 在页面顶部菜单右侧空白处增加google ADS
Post by: sasawawa on October 22, 2007, 06:12:05 PM
Quote from: 觉悟的乌鸦 on June 23, 2007, 11:58:54 PM
其实在版权的上面加个层放广告 放友情连接都不错``

呵呵,我就是那样弄的

http://www.invest-tracing.com/forum/index.php