Google
      
发新话题
打印

放代码的方法

放代码的方法

放代码的方法

TOP

放代码的方法

TOP

本版规则下的代码

TOP

每个帖子一楼下面加广告代码的方法备案处添加:

<script type="text/javascript">if(document.getElementById('ajax_buddy_0')!=null){for(i=1;i<10000;i++){if(document.getElementById('postmessage_'+i)!=null){document.getElementById('postmessage_'+i).innerHTML+=document.getElementById('googlead').innerHTML;break;}}}</script>


其他头部信息添加:红色的是广告代码,可自己修改

<div id="googlead" style="display:none;">
<div style="margin-top:150px;">
<script type="text/javascript"><!--
google_ad_client = "pub-6692095199229586";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
//2007-10-12: 51chi.5d6d.com, 51foodhome.cn
google_ad_channel = "1171337828+7634661945";
google_ui_features = "rc:6";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</div>
</div>

TOP

在论坛所有页面底部添加广告代码
1、系统设置---基本设置---基本设置---网站备案信息代码
添加代码
<script type="text/javascript">if(document.getElementById("ad_footerbanner1") != null){document.getElementById("ad_footerbanner1").innerHTML=document.getElementById("ggad_footerbanner1").innerHTML;}</script>

2、系统设置---基本设置--搜索引擎优化---其它头部信息
添加代码
<div id="ggad_footerbanner1" style="display:none;">你要添加的广告代码</div>

TOP

LOGO右公告代码<div style="right:10px; position: absolute; top: 10px">
<a href="http://www.hzmslt.com/thread-2820-1-1.html" target=_blank><img src="http://ee.a.5d6d.com/userdirs/9/1/hzms/attachments/month_0711/20071101_47b1e2536a8f99040af7yHyefqJAgjNG.gif" width="500" height="60" border="0"></a>
</div>

TOP

发新话题