• Welcome to Simple Machines Community Forum. Please login or sign up.
November 27, 2021, 07:54:43 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


在页面顶部菜单右侧空白处增加google ADS

Started by yj98, November 10, 2006, 05:28:42 AM

Previous topic - Next topic

yj98

只是觉得菜单右侧空白浪费了可惜. :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>


完成, 图例:

觉悟的乌鸦

其实在版权的上面加个层放广告 放友情连接都不错``
a man who come from gamewatch. [nofollow]

keithsk

HI多謝樓主,我現在明白得多左.放廣告地點好好.


Advertisement: