25 October 2009

How to Add Google Image search to Website

Google offers you to add their search box directly into your website/blog using adsense search option and also pays you for the same but if you are running a website which is dedicated for images/wallpapers then you would be interested in adding a Google Images Search Box rather than a normal content search box which comes by default.

Google Images Search Logo

If you are making a search in Google search engine the URL would be like this :

http://www.google.com/search?q=india

Similarly if you are making a search in Google Images the search query page would be :

http://images.google.com/images?q=india

which clearly shows that the search result pages are very easy to understand and can be easily integrated into a search box.

Now the next option is to create a Search Box using basic html tricks and here is the code to get started :










The above code is very easy and pure html basics and you can change the Submit Value from ‘Google Images Search’ to any display key phrase which appears on the submit button.

The same above process can be tweaked a bit in order to add MSN.com Image Search, Yahoo.com Images Search and Live.com Images Search in your websites or blog.

Here are the codes for the search result pages which can be added to the Action URL :
http://search.live.com/images/results.aspx?q=India : Live.com Images Search
http://search.msn.com/images/results.aspx?q=India : MSN.com Images Search
http://images.search.yahoo.com/search/images?p=India : yahoo.com Images Search

You can try the same with any other major search engines and iam sure you can easily create custom image search boxes for your websites easily.

No comments:

Google

See other Related Posts below