How can I embed “Google Search” box in my web-site?

By admin at 27 June, 2008, 9:10 am

Dear friends, you may be wandering how to embed “Google Search” box in your website. Do not worry it’s so simple to add it.Google itself actually provides you a nice page along with HTML code. Just what you need to do is copy and paste it onto your web page.
NOTE :: Layout can be changed, it all depends upto you.

Google provides mainly three “Google Free Web Search”.

*** First one is simple version of the Google Search box.It works as you copy and paste it into your HTML content.

CODE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=25 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->

*** Next one is “Google Free SafeSearch”, that represents a safe version of the Google Search box, because it will return only sites without adult or explicit sexual content. You can add it to you website by copying the text below and pasting it into your HTML code.

CODE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
<!-- Google SafeSearch -->
<center>
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/search?safe=vss">
<IMG SRC="http://www.google.com/logos/Google_Safe.gif"
border="0" ALT="Google" width="115" height="45" align="absmiddle"></A>
<INPUT TYPE=text name=q size=25 maxlength=255 value="">
<INPUT type=hidden name=safe value=strict>
<INPUT type=submit name=sa value="Google Search">
</td></tr></TABLE>
</FORM>
</center>
<!-- Google SafeSearch -->

*** The last and the most complex search box is Google Free web search with site search that will allow users to search the Internet or search your website, an action that will offer a better navigation and quick access to your menus.

CODE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF" align="center"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google"></A>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
<font size=-1>
<input type=hidden name=domains value="YOUR DOMAIN NAME"><br><input type=radio
 
name=sitesearch value=""> Web Search <input type=radio name=sitesearch value="YOUR DOMAIN
 
NAME" checked> Site Search <br>
</font>
</td></tr></TABLE>
</FORM>
<!-- SiteSearch Google -->

Spread the Words!




Trackbacks & Pingbacks

Comments

Sorry, the comment form is closed at this time.