Adding Google Free WebSearch


Lots of webmasters add Google search boxes to their sites, because Google makes it easy to do so. Google's main program is called Google Free, and it comes in several different flavorsbasic web search, web search with SafeSearch filtering, and web search with site search added.

The first of these options is Google Free WebSearch. It's easy to add; all you have to do is insert the following HTML code into your web page's code, where you want the search box to appear.

Here's the code:

 <! 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 >


The result is a standard Google search box, like the one shown in Figure 39.1.

Figure 39.1. Adding a Google search box to your web page.





Googlepedia. The Ultimate Google Resource
Googlepedia: The Ultimate Google Resource
ISBN: 078973639X
EAN: 2147483647
Year: 2004
Pages: 370

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net