Saturday, January 19, 2008

Đưa Google Map vào Blog

Để đưa Google Map vào Blog bạn cần tới Google Map Page và đăng kí 1 Google Map API key. Bạn click "Sign up for a Google Maps API key" ngay dưới "How do I start?"....

Trong trang Sign up, bạn click vào ô vuông bên cạnh câu "I have read and agree with the terms and conditions" và điền địa chỉ Blog vào hộp văn bản phía dưới. Click vào Generate API Key và bạn sẽ được chuyển tới trang Google Maps API.

Hãy copy và paste đoạn code sau đây vào dưới thẻ </title> trong bảng code Template của bạn(Bạn chỉ copy và paste những dòng chữ mầu xanh).

<script src='http://maps.google.com/maps?file=api&v=2&key=Key Map' type='text/javascript'>

(Bạn thêm " amp; " vào ngay sau " & ")

</script>
<script type="text/javascript">

//<![CDATA[

function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.setCenter(new GLatLng(37.4419, -122.1419), 5);
}
}

//]]>
</script>

Bạn thay Key Map bằng key bạn được Google cung cấp.

Bạn hãy tìm thẻ <body> trong bảng code Template và paste đoạn code sau đây xuống dưới thẻ đó:

<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px"></div>
</body>

Bước cuối cùng bạn cần làm là copy và paste đoạn code sau vào khu vực CSS trong template của bạn.

#map {
float:right;
margin:10px 20px 10px 10px;
}

Save lại và bạn sẽ thấy 1 tấm bản đồ như thế này:
Chúc các bạn sẽ thành công!

Cám ơn các bạn đã theo dõi bài viết. Mong sẽ nhận được nhiều ý kiến đóng góp từ các bạn để giúp hoàn thiện nội dung bài viết hơn..
Chúc các bạn có 1 ngày vui vẻ!












AdSense Earning = Impression-count x Click-though-rate x Cost-per-click x smart-pricing-factor.impression count is basically referring to increase your traffic. It means the number of times AdSense secret block is displayed.Click-through-rate (CTR) is ratio of clicks per impressions. It can range from 0.1% to 30%, but most commonly around 1% to 10%.Cost-per-click (CPC) is the earning money you get per click. While traditionally it refers to the amount advertisers pay for each click, it can also mean the amount publishers get for each click.Smart-pricing is AdSense method to determine how valuable clicks from your site is worth. If clicks on your site doesn’t provide good value to advertisers, e.g. from visitors’ geo-location that seldom translate to sales, you will only get a fraction of the supposed CPC.Don’t encourage your visitors to click on ads. The only acceptable text is “Sponsored Links” and “Advertisements”.When in doubt don’t hesitate to contact the AdSense team. They are very helpful.Use Overture Bid Tool and Search Engine Keyword Tool to find suitable keyword.Submit your URL to search engines for crawling.Google is not the only search engine. Optimize for different engines as well. You are very likely to face less competition than in Google.Search engines are where most of your new visitors come from. Learn a bit about Search Engine Optimization, or pay people to do it. Doing it yourself will save yourself from troubles created by not-so-honorable SEO (Search Engine Optimizer).Try 300×250 medium rectangle, 336×280 large rectangle, or 160×600 wide skyscraper ad formats. These are the best performing AdSense ad formats.Wrap the AdSense block around your content.AdSense have both CPM (cost per thousand impressions) and CPC (cost per click) ads, and will choose the one it thinks can perform better.Adsense tips have in here.SearchAdSense Tipson Google. Most webmasters continuously try to optimize their AdSense and many are more than willing to share their result.You can get help of other AdSense pulishers at AdSense Help Group.Remove the “Advertise on this sitefrom your AdSense block until your site is big enough to attract real advertisers. This will help to clear off many MFA (made-for-adsense) sites. You can disable it from AdSense account setting.Use AdSense Competitive Ads Filter to remove irrelevant ads.Try variations of AdSense colors, format, position on different pages to make it more unpredictable for your visitors.Watch your AdSense tips earning. Notify AdSense hack Team if you find anything suspicious. Your competitors might try to sabotage your account, or your well-meaning friend keep on clicking on the ads thinking they are helping you.Use Google AdSense section targeting to help AdSense deliver more relevant ads.Let earning money!money!


No comments: