Adding Google Free WebSearch with SiteSearch


Google also lets you search your own website using Google's search technology. This option is dubbed Google Free WebSearch with SiteSearch; just insert the following HTML code:

<! 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"><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="YOURDOMAIN"><br><input type=radio name=sitesearch value=""> WWW <input type=radio name=sitesearch value="YOURDOMAIN" checked> YOURDOMAIN<br> </font> </td></tr></TABLE> </FORM> <! SiteSearch Google > 


For this option, you need to replace all instances of YOURDOMAIN with your own domain name (either with or without the leading www). As you can see in Figure 39.3, this inserts a search box with the option of searching the web ("WWW") or your own website.

Figure 39.3. Adding a Google search box with both web and site search 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