标签为 广告 的存档
开始研究php
Author: robay23 九 2007
终于算是把blog的相关设置和功能调试满意了,广告也加了点儿,不多,还是给自己留点清静的空间吧,不过倒是挣了几毛钱了,只是不知道要到什么时候才能到100Dao的大关;,音乐就不加了,影响速度不说,还有点乱,想听歌的话去我另个blog好了;最满意的是google的搜索条,主要是能够方便自己,打开自己的主页,想找东西就从自己的搜索界面里搜就行了,不用再输入它的地址了,而且这段时间发现,在查找方面确实比baidu强很多,开始喜欢上google了.
制作网站的网站地图sitemap.xml
Author: robay16 九 2007
想要做广告得到更好的宣传,不外乎自己到搜索引擎里主动添加,但搜索引擎也可以自动的更新你的网站内容,那就是通过你的网站地图,今天又学到了点新东西,贴上来分享下:
网站地图的制作,就是在站点的根目下建立一个sitemap.xml文件,该文件概要描述你网站的主要文件结构.
制作sitemap.xml文件的目的就在于:便于各大搜索引擎收录你网站的网页到他们的数据库,以建立索引,供别人搜索时搜到你的站点,这样,收录的越多,你的访问人数也多了,这样其它的就不成问题了.
sitemap.xml文件用XML扩展标记语言来表述你的网站结构,这种文件对用户不可见,只是对于搜索引擎的爬虫而言的,它们认识这种文件,知道该去哪里来收录你的网站文件.
给你一个例子,一看就知道如何去做,稍微改造一下就可:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"><url>
<loc>http://www.a-boss.com/blog/article.asp?id=90</loc>
<lastmod>2007-09-16</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url><url>
<loc>http://www.a-boss.com/blog/article.asp?id=89</loc>
<lastmod>2007-09-16</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url><url>
<loc>http://www.a-boss.com/blog/article.asp?id=88</loc>
<lastmod>2007-09-16</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url><url>
<loc>http://www.a-boss.com/blog/article.asp?id=87</loc>
<lastmod>2007-09-15</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url></urlset>
其中:<loc></loc>标记中间就是你网站的各个目录以及目录下的文件
<lastmod></lastmod>标记中间是你修改此文件的最近更新日期
<changedfreq></changedfreq>标记中间是你网站的更新频率如daily,monthly等等
<priority></priority>标记中间是你对此网页或此目录的权重,也就是采集的优先级别,一般为0.1到1.0之间
google ADsense设置代码
Author: robay13 九 2007
都说可以通过google adsense挣钱,不知道真假,估计与网站的浏览量或流量有关系吧,至少我目前还达不到这种规模,不过还是可以先装上用用,也方便自己找东西吗?贴子设成隐藏的,给自己留个备用参考,也省得别人说我给自己做广告。
1、google adsense 搜索模块(AdSense for Search)
在页面的适当位置放置下面的代码即可实现google搜索功能.
[code]
<!-- Search Google -->
<form method="get" action="http://www.google.com/custom" target="google_window">
<table >
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<input type="text" name="q" size="15" maxlength="255" value="www.sale925.cn" ></input>
<input type="submit" name="sa" value="Google" class="button" ></input>
<input type="hidden" name="client" value="pub-9928792648942112"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="1752202669"></input>
<input type="hidden" name="ie" value="GB2312"></input>
<input type="hidden" name="oe" value="GB2312"></input>
<input type="hidden" name="cof" ></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</td></tr></table>
</form>
<!-- Search Google -->
[/code]
2、google adsense的页面广告功能( AdSense for Content)
在你想加入广告的页面位置处放置下面的代码即可实现google广告功能.本广告的显示大小为468*60的格式。
[code]<script type="text/javascript"><!--
google_ad_client = "pub-9928792648942112";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel = "";
google_ui_features = "rc:10";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
[/code]
广告占位
Author: robay12 九 2007
闲来无事在自己的网页上放上了个广告,其实是想放Google Adsense的,只是过申请还要审核,于是测试般的把自己主机的广告放上来了.
考虑到将来的兼容性和扩展性,把广告的链接放到了ad.asp文件里,这样广告发生变动的时候,只要更改ad.asp文件内容就可以了.
看两天碍眼的话,就撤下来!