Monday, December 31, 2007

Creat Google Gadget - A Method To Increase Traffic To Your Site.

Google Gadget is a small programme which easy to use in several websites or also Google Desktop and support some advance features for several purposes. These purposes can be every thing from advertisement in your site to support information or run some small programmes.
Just because these Gadgets can run in several websites or also Google Desktop, they have more features than Blogger Widget. However, they have a similarity is can only run in 1 kind of blog, Blogspot.
Blogger Widget can only be setuped in Blogspot so it will limit the traffic to your site. So, if you want to creat a Blogger Widget, come to Blogger Buzz and creat your own Blogger Widget.

Creat a Widget is really simple, you don't need to sign up an account or download any programmes...
To creat a Gadget, use Google Gadget Editor. In level of be encoded, a Google Gadget is a XML file, in there, you can put any contents of any websites which is existing or applications. For instanse, the code of Google Gadget for the sentence: " Hello world!" can be seen like this:





Content code and Module Preference are put in a . Module code is put after the code that declare XML, to confirm that is a XML file. XML is a language that permit to creat your customized Tags, its purpose is creat advantages for reader and computer to read and write this language.

You creat Google Gadget to present some interesting contents which can be put on every sites. It can be put to every sections below: News, Tools, Communication, Fun & Games, Finance, Sports, Lifestyle and Technology.


Create Google Gadget
.

For instance, I created a Google Gadget which show Adsense contents in this blog. To do that, I took Feed of "Adsense-VN" label and used pattern 'Fetch Feed as JSON' which is available on Google Gadgets API Scratchpad. Look at the picture below:



I chose 'Fetch Feed as JSON' by click in link which was marked by the below arrow. JSQN (JavaScript Object Notation) is a pattern which permit to exchange some small data. It is the format on text background, every body can read it, use to present data structures and some thing else; and it is used basicly to pass these data which are created via a connected network. Firstly, I will take feed of " Adsense-VN" label:

http://crazyboy89.blogspot.com/feeds/posts/default/-/Adsense-VN

or URL of my blog which was taken from feedburner:

http://feeds.feedburner.com/WorldOfCrazy

I paste this URL inside this code of 'Fetch Feed as JSON' pattern:

// Use the _IG_FetchFeedAsJSON() function to retrieve core feed data from
// the specified URL. Then combine the data with HTML markup for display in
// the gadget.
_IG_FetchFeedAsJSON(
http://crazyboy89.blogspot.com/feeds/posts/default/-/Adsense-VN

Then I change a little bit in <l;ModulePrefs...../> and save my gadget in File menu. Use preview ti see what gadget look like, and after saving this gadget, you will have a URL or link which lead ti this gadget, Google will supply free in putting your gadget on official folder, where people around the world will come to find it.

And this is how to present which was diagramed in code in my "Adsense-VN" Google Gadget. Look at the picture below:



As you can see, it is different from simple "hello world" Google Gadget which was stated in the first picture. It now conclude 'User preference'. When a code is put on a website, is will look like this:



If you want to add this to your blog sidebar, come to Google Gadget Creator Page. In there you can change gadget size to suit to your sidebar. You can maximum choose 9 posts in Gadget. After choosingm you sould preview before take code of this gadget and put to blog.

You can see below, this is a gadget that I put to this post. It is the impossible thing to Blogger Widget. That because blogspot is a widget itself so it cannot conclude another widget.

Thank you for reading this post, I wish I would recieve many opinions from you!









No comments: