How To Customize Google Custom Search Engine And Search Button

Posted By: Poketors - September 28, 2011

If you are on web then needless to tell about the Google search and a lot of product related to the brand Google. In normal practice whatever we want to know, we simply open Google page and search it. So how about the search engine where you will specify teh parameters i.e. how and where to search? It sounds great. Okay, then we will tell you how to make a customize google search and also how to change the watermark of Google search bar and its button. Google provides a very user friendly platform where you can customize your google search with your required query and result.

So now we will explain you how Google Custom Search Engine (CSE) works. Here we go:

Textbox Customization:
The Google CSE code looks like somewhat given in the below image. If you want to change the watermark image, copy the javascript source link i.e http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en and open it in browser. Download the javascript. If you see the js, you will find some codes like following with a imagone link in it :

1. Copy the entire javascript code and paste it in Notepad.
2. Change the watermark.gif image link with your own desired image.
3. Save the file as google.js and upload it on web.
4. Again go to Google CSE code and replace the javascript code with your own edited code.

Submit button Customization :

It is very easy to customize as we do not have to edit any javascript here. We will do it via CSS.

Just open the Edit HTML and paste this code before

<code>]]&gt;&lt;/b:skin&gt;<br /></code>

<code>

#SearchButton {<br />

background:url(Your-Submit-Button-Image-Link-Here) no-repeat;<br />

width:70px; }<br />

</code>

Please change the width according to the size of the button image and suitable to your site.

Done with teh size customiszation. Now go to Google CSE code and search for