The netizen that makes a station with rich customer order now is very much, when a lot of netizens are communicating with small A, say not to know how to add Adsense advertisement in Pjblog, then small A from the search on the net burn relevant material, consult for everybody. Go88 observation stands even if use Pjblog between, also used a few methods below.
The first kind adds a method:
Above all, make picture of a background (do like me this) , below the Images catalog in uploading stencil catalog, wide and tall 555 × 79, of course you already can define the size that setting pursues completely oneself, this depends on the magnitude of Google Adsense advertisement dimension that you will reveal.
Next, the code below joins in the file of Style.css style watch of pattern plate:
#gsbg_single { Width: 480px; Height: 70px; Background-image: Url(images/gsbg2.jpg); Padding-top: 10px; Padding-left: 75px;
}
Be in the place that decides you need to show finally, the corresponding place in stencil inserts below code:
<div Id=gsbg_single>
Google Adsense code is inserted here
</div>
The 2nd kind adds a method:
Method one, Google advertisement code increases in bottom of static page log
1.Open Template folder;
2.Find Article.asp;
3.Carry notebook or be FrontPage opens;
4.Find following code:
<div Id=logPanel Class=Content-body>
<$ArticleContent$>
<br/><br/>
5.Join code of your Google Adsense advertisement, following give typical examples:
<div Id=logPanel Class=Content-body>
<$ArticleContent$>
<br/><br/>
<script Type=text/javascript>< ! - -Your Pub date; is hereGoogle_ad_width = 300;Google_ad_height = 250;Google_ad_format = 300×250_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/javascriptSrc=Http://pagead2.googlesyndication.com/pagead/show_ads.js
</script>
</div>
<br/><br/>
6.Save and upload your Ftp, enter processing face plate next—-The site is installed basically—–Initialization data;
7.Click [rebuild data cache] , [] of data of new statistic website, [Serious new student arrives into all logs file] , [Build time index] afresh, click finally [save configuration] can!
Method 2, Google advertisement code increases in bottom of dynamic page log
With the Cls_article.asp below modification Class can.
<div Class=Content-body>
<%if Len(log_ViewArr(16, 0))>0 Then Response.write (log_ViewArr(16, 0)&<br/>)%>
<script Type=text/javascript>< ! - -Your Pub date; is hereGoogle_ad_width = 468;Google_ad_height = 60;Google_ad_format = 468×60_as;Google_ad_type = Image;Google_ad_channel =;
/ /- - > </script>
<script Type=text/javascript Src=Http://pagead2.googlesyndication.com/pagead/show_ads.js>
</script>
The 3rd kind adds a method:
The advertisement of Google is added inside 1. article. The effect
In Template this folder falls find. Open Article.asp, find <$ArticleContent$> . In this above stickup code
Program code
< ! - - Google advertisement code begins- ->
<div Id=vad Class=paper01>
<div Class=aditem_paper01>
<script type=text/javascript>< ! - -Your number; is hereGoogle_ad_width = 200;Google_ad_height = 200;Google_ad_format = 200×200_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/javascriptSrc=Http://pagead2.googlesyndication.com/pagead/show_ads.js>
</script>
</div></div>< ! - - Google advertisement code ends- - >
If be a static state,generate, want to enter tiring-room, install basically, initialization data just can be shown come.
Ad.css is built below the skin that you use, code is as follows:
Program code
.paper01
{Margin: 2px 1px 2px 2px;Float:rIght;Vertical-align: Top;
}
.aditem_paper01
{Padding: 0px 0px 0px 20px;
}
Below root catalog, following code are found in Header.asp
Cite content
<link Rel=icon href=favicon.ico Type=image/x-icon />
<link Rel=shortcut Icon href=favicon.ico Type=image/x-icon />
In this code above stickup following code:
<link Rel=stylesheet rev=stylesheet href=skins/<%=Skins%>/ad.css type=text/css Media=all />< ! - - watch of Google ad style- - >
With respect to these, him everybody of other fumbles.
Tags: , added, AdSense, advertising, google, method, sorts, Summary