pjblog中添加各種GOOGLE廣告的方法總結(jié)
更新時(shí)間:2007年03月26日 00:00:00 作者:
添加各種GOOGLE廣告的方法總結(jié)
第一種:pjblog中如何在文章中加入GOOGLE廣告(也可以放其他的東西)
首先,做一個(gè)背景圖片(如我做的這個(gè)),上傳到模版目錄中的images目錄下,寬和高555×79,當(dāng)然背景圖的大小你完全可以自已定義,這取決于你將展示的Google Adsense廣告尺寸大小。
然后,在模板的style.css樣式表文件中加入下面的代碼:
#gsbg_single {
width: 480px;
height: 70px;
background-image: url(images/gsbg2.jpg);
padding-top: 10px;
padding-left: 75px;
}
最后在確定你需要顯示的地方,在模版中的相應(yīng)地方插入下面代碼:
<div id=gsbg_single>
##這里插入Google adsense代碼
</div>
第二種
方法一、在靜態(tài)頁(yè)面日志底部增加Google廣告代碼
1. 打開Template文件夾;
2. 找到Article.asp;
3. 通過(guò)記事本或是FrontPage打開;
4. 找到如下代碼:
<div id="logPanel" class="Content-body">
<$ArticleContent$>
<br/><br/>
5. 把你的Google Adsense廣告代碼加入,如下示例:
<div id="logPanel" class="Content-body">
<$ArticleContent$>
<br/><br/>
<script type="text/javascript"><!--
google_ad_client = "";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "0000FF";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"
</script>
</div>
<br/><br/>
6. 保存并上傳你的ftp,然后進(jìn)入管理面板----站點(diǎn)基本設(shè)置-----初始化數(shù)據(jù);
7. 點(diǎn)擊[重建數(shù)據(jù)緩存], [重新統(tǒng)計(jì)網(wǎng)站數(shù)據(jù)], [重新生成所有日志到文件], [重新建立日子索引],最后點(diǎn)擊[保存配置]即可!
方法二、在動(dòng)態(tài)頁(yè)面日志底部增加Google廣告代碼
用修改class下面的cls_article.asp即可。
<div class="Content-body">
<%if len(log_ViewArr(16,0))>0 then response.write (log_ViewArr(16,0)&"<br/>")%>
<script type="text/javascript"><!--
google_ad_client = "pub-0615630542242589";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br /><img src="images/From.gif" style="margin:4px 2px -4px 0px" alt=""/><strong>
注:藍(lán)色字為你自己的廣告代碼
第三種:pjblog是一個(gè)很優(yōu)秀的程序,最主要的功能全部都有了,但細(xì)節(jié)上有好多做的不太適合自己,要想做的比較符合自己的喜好的話。就要通過(guò)改一些代碼或是裝一些插件來(lái)實(shí)現(xiàn)你想實(shí)現(xiàn)的代碼。計(jì)算機(jī)比較慢,做了一點(diǎn)小功能就花了5個(gè)多小時(shí),但diy的樂趣還是很好的。下面放一些自己做的東西。都是收集,不是原創(chuàng),如侵犯版權(quán)就發(fā)電子郵件:info#raincai.com,我會(huì)在24小時(shí)作出處理。
1.文章里面加上google的廣告。效果
在Template這個(gè)文件夾下找到。打開article.asp,找到<$ArticleContent$>。在這個(gè)的上面粘貼一下代碼
程序代碼
<!-- Google廣告代碼 -->
<div id="vad" class="paper01">
<div class="aditem_paper01">
<script type="text/javascript"><!--
google_ad_client = "pub-2789878711709805";
google_ad_width = 200;
google_ad_height = 200;
google_ad_format = "200x200_as";
google_ad_type = "image";
google_ad_channel = "";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><!-- Google廣告代碼 -->
如果是靜態(tài)生成,要進(jìn)后臺(tái),基本設(shè)置,初始化數(shù)據(jù)才可以顯示出來(lái)。
在你用的皮膚下面建立ad.css,代碼如下:
程序代碼
.paper01
{
margin: 2px 1px 2px 2px;
float:right;
vertical-align: top;
}
.aditem_paper01
{
padding: 0px 0px 0px 20px;
}
在根目錄下,header.asp中找到如下代碼
引用內(nèi)容
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
在這個(gè)代碼的上面粘貼如下代碼:
引用內(nèi)容
<link rel="stylesheet" rev="stylesheet" href="skins/<%=Skins%>/ad.css" type="text/css" media="all" /><!--Google廣告樣式表-->
所有的這些做完就搞定了。。。嘿嘿。。
第一種:pjblog中如何在文章中加入GOOGLE廣告(也可以放其他的東西)
首先,做一個(gè)背景圖片(如我做的這個(gè)),上傳到模版目錄中的images目錄下,寬和高555×79,當(dāng)然背景圖的大小你完全可以自已定義,這取決于你將展示的Google Adsense廣告尺寸大小。
然后,在模板的style.css樣式表文件中加入下面的代碼:
#gsbg_single {
width: 480px;
height: 70px;
background-image: url(images/gsbg2.jpg);
padding-top: 10px;
padding-left: 75px;
}
最后在確定你需要顯示的地方,在模版中的相應(yīng)地方插入下面代碼:
<div id=gsbg_single>
##這里插入Google adsense代碼
</div>
第二種
方法一、在靜態(tài)頁(yè)面日志底部增加Google廣告代碼
1. 打開Template文件夾;
2. 找到Article.asp;
3. 通過(guò)記事本或是FrontPage打開;
4. 找到如下代碼:
<div id="logPanel" class="Content-body">
<$ArticleContent$>
<br/><br/>
5. 把你的Google Adsense廣告代碼加入,如下示例:
<div id="logPanel" class="Content-body">
<$ArticleContent$>
<br/><br/>
<script type="text/javascript"><!--
google_ad_client = "";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "0000FF";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"
</script>
</div>
<br/><br/>
6. 保存并上傳你的ftp,然后進(jìn)入管理面板----站點(diǎn)基本設(shè)置-----初始化數(shù)據(jù);
7. 點(diǎn)擊[重建數(shù)據(jù)緩存], [重新統(tǒng)計(jì)網(wǎng)站數(shù)據(jù)], [重新生成所有日志到文件], [重新建立日子索引],最后點(diǎn)擊[保存配置]即可!
方法二、在動(dòng)態(tài)頁(yè)面日志底部增加Google廣告代碼
用修改class下面的cls_article.asp即可。
<div class="Content-body">
<%if len(log_ViewArr(16,0))>0 then response.write (log_ViewArr(16,0)&"<br/>")%>
<script type="text/javascript"><!--
google_ad_client = "pub-0615630542242589";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br /><img src="images/From.gif" style="margin:4px 2px -4px 0px" alt=""/><strong>
注:藍(lán)色字為你自己的廣告代碼
第三種:pjblog是一個(gè)很優(yōu)秀的程序,最主要的功能全部都有了,但細(xì)節(jié)上有好多做的不太適合自己,要想做的比較符合自己的喜好的話。就要通過(guò)改一些代碼或是裝一些插件來(lái)實(shí)現(xiàn)你想實(shí)現(xiàn)的代碼。計(jì)算機(jī)比較慢,做了一點(diǎn)小功能就花了5個(gè)多小時(shí),但diy的樂趣還是很好的。下面放一些自己做的東西。都是收集,不是原創(chuàng),如侵犯版權(quán)就發(fā)電子郵件:info#raincai.com,我會(huì)在24小時(shí)作出處理。
1.文章里面加上google的廣告。效果
在Template這個(gè)文件夾下找到。打開article.asp,找到<$ArticleContent$>。在這個(gè)的上面粘貼一下代碼
程序代碼
<!-- Google廣告代碼 -->
<div id="vad" class="paper01">
<div class="aditem_paper01">
<script type="text/javascript"><!--
google_ad_client = "pub-2789878711709805";
google_ad_width = 200;
google_ad_height = 200;
google_ad_format = "200x200_as";
google_ad_type = "image";
google_ad_channel = "";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><!-- Google廣告代碼 -->
如果是靜態(tài)生成,要進(jìn)后臺(tái),基本設(shè)置,初始化數(shù)據(jù)才可以顯示出來(lái)。
在你用的皮膚下面建立ad.css,代碼如下:
程序代碼
.paper01
{
margin: 2px 1px 2px 2px;
float:right;
vertical-align: top;
}
.aditem_paper01
{
padding: 0px 0px 0px 20px;
}
在根目錄下,header.asp中找到如下代碼
引用內(nèi)容
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
在這個(gè)代碼的上面粘貼如下代碼:
引用內(nèi)容
<link rel="stylesheet" rev="stylesheet" href="skins/<%=Skins%>/ad.css" type="text/css" media="all" /><!--Google廣告樣式表-->
所有的這些做完就搞定了。。。嘿嘿。。
相關(guān)文章
AWStats簡(jiǎn)介:Apache/IIS的日志分析工具
AWStats是在Sourceforge上發(fā)展很快的一個(gè)基于Perl的WEB日志分析工具。相對(duì)于另外一個(gè)非常優(yōu)秀的開放源代碼的日志分析工具Webalizer,AWStats的優(yōu)勢(shì)在于2008-04-04- 是不是所有的商業(yè)網(wǎng)站都可以一推百靈?似乎不是。在推廣你的商業(yè)網(wǎng)站之前,你要先檢查網(wǎng)站的“裝備”是否合乎如下要求:網(wǎng)站信息內(nèi)容足夠豐富、準(zhǔn)確、及時(shí)(絕對(duì)不是公司簡(jiǎn)介的電子版);網(wǎng)站設(shè)計(jì)具有專業(yè)水準(zhǔn)(絕對(duì)不是初學(xué)者的涂鴉之作);你已經(jīng)明確網(wǎng)站目標(biāo)市場(chǎng)(如果你的目標(biāo)市場(chǎng)定位在8000萬(wàn)網(wǎng)民,恐怕我們幫不了你)。然后,你就可以參考下面的技巧來(lái)推廣你的網(wǎng)站啦。2008-04-04
網(wǎng)站備案的五個(gè)非常規(guī)性問(wèn)題答疑
網(wǎng)站備案的五個(gè)非常規(guī)性問(wèn)題答疑...2007-07-07火車頭 V3_Dvbbs_7.1.0_Sp1 模塊及發(fā)布注意事項(xiàng) 下載
本文給大家分享的是火車頭 V3_Dvbbs_7.1.0_Sp1 模塊及發(fā)布注意事項(xiàng)以及模塊下載,需要的朋友可以參考下2007-04-04超級(jí)實(shí)用的幾款瀏覽器插件,打開豐富資源大門
去瀏覽器搜索資源和信息已經(jīng)成為我們的日常,但一個(gè)沒有裝插件的瀏覽器充其量只能發(fā)揮40%的功能,沒有插件的瀏覽器是沒有靈魂的,要想發(fā)揮瀏覽器全部的功能,插件是必不可少的,學(xué)會(huì)之后讓你的瀏覽器“活過(guò)來(lái)”2021-08-08