PJBLOG 博客 广告 加速

bywzy 发表于 学习笔记 分类,
0

第一步,当然是申请GOOGLE AD 代码了
第二步,在网站后台,打开USER 侧边模块 选择HTML代码编辑  加入以下代码

程序代码 程序代码

<span id="myads">Google广告载入中…</span>


在footer.asp加入以下脚本

程序代码 程序代码

<span id="span_myads">
<script type="text/javascript"><!–
google_ad_client = "pub-6227743486540211";
google_ad_width = 180;
google_ad_height = 60;
google_ad_format = "180x60_as_rimg";
google_cpa_choice = "CAAQ0cX8zwEaCEpGRZ0Cl8yyKPu_93M";
google_ad_channel = "";
//–></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</span>


第三步,通过电子相册(因为我一直没有用它,所以另作他用)加入GOOGLE SEARCH
       打开内容模块 NewGallery 选择HTML编辑
       加入以下代码,原来的可用,直接删了(这样好看一点,哈哈。)

程序代码 程序代码

<$NewGallery$> <!– 不用可以删了这行 –>
<!– SiteSearch Google –>
<form method="get" action="http://www.google.cn/custom" target="google_window">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="www.ycsznet.com"></input>
<input type="text" name="q" size="45" maxlength="255" value=""></input>
<input type="submit" name="sa" value="ËÑË÷"></input>
</td></tr>
<tr>
<td> </td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="www.ycsznet.com"></input>
<font size="-1" color="#000000">www.ycsznet.com</font>
</td>
</tr>
</table>
<input type="hidden" name="client" value="pub-6227743486540211"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="UTF-8"></input>
<input type="hidden" name="oe" value="UTF-8"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</td></tr></table>
</form>
<!– SiteSearch Google –>


第四步,在内容页加下Google Content
         主要修改Template目录下的Article.asp和class目录下的cls_article.asp
         在Article.asp修改的位置如下
    

程序代码 程序代码

        <div id="logPanel" class="Content-body">
    <$ArticleContent$>
    <br/>
    <%'2006-10-13 add google ad %>
<div id="Content_GoogleAD2" class="content-width">
<div style="text-align:left;padding:3px;background:#F7F6F4">
<script type="text/javascript"><!–
google_ad_client = "pub-6227743486540211";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
//–></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div>      
<%'2006-10-13  end%>
<br/>
<br/>
</div>
<div class="Content-body">
      


在cls_article.asp修改的位置如下

程序代码 程序代码

else
response.write (highlight(UnCheckStr(log_ViewArr(8,0)),keyword))
end if    %>

<%'2006-10-13 add google ad %>
<div id="Content_GoogleAD2" class="content-width">
<div style="text-align:left;padding:3px;background:#F7F6F4">
<script type="text/javascript"><!–
google_ad_client = "pub-6227743486540211";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
//–></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div>          
<%'2006-10-13  end%>
<br/><br/>
</div>
<div class="Content-body">    


  然后到后台,初始化数据,重建前4项

效果请看本站。如果有什么问题,可以QQ交流:34155711

« 上一篇: :下一篇 »

发表我的评论

icon_wink.gif icon_neutral.gif icon_mad.gif icon_twisted.gif icon_smile.gif icon_eek.gif icon_sad.gif icon_rolleyes.gif icon_razz.gif icon_redface.gif icon_surprised.gif icon_mrgreen.gif icon_lol.gif icon_idea.gif icon_biggrin.gif icon_evil.gif icon_cry.gif icon_cool.gif icon_arrow.gif icon_confused.gif icon_question.gif icon_exclaim.gif