Add a Google custom search facility to your website
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title>abc</title> <meta http-equiv="Content-Type" content="text/html; charset: UTF-8" /> </head> <body> <form action="http://www.google.com/search"> <div><input name="query" type="hidden" value="site:snippets.dzone.com"></input></div> <div><input maxlength="2048" name="q" size="55" title="Google Search" value="" ></input></div> <div><input name="btnG" type="submit" value="Google Search"></input></div> </form> </body> </html>
I stumbled across the hidden query field while I was looking for ways to perform custom search without the need for JavaScript. If you are interested in Google's official custom search engine on your site go to http://www.google.com/cse
* update 8-Jan-08 2:01pm *
Here's a more advanced example from someone's blog titled 'Fine-tuning Custom Google Search' http://snipr.com/1wppb [blogs.salon.com]
<FORM method=GET action=http://www.google.com/custom>; <A HREF=http://www.google.com/search>; <IMG SRC=http://www.google.com/logos/Logo_40wht.gif border=0 ALT=Google align=middle></A> <INPUT TYPE=text name=q size="10" maxlength=255 value=""> <INPUT type=submit name=sa VALUE="Just Goog It!"> <INPUT type=hidden name=cof VALUE="GIMP:darkblue;LW:380;ALC:red;L:http://blogs.salon.com/0001111/images/rfbanner.jpg;GFNT:lightblue;LC:red;LH:100;AH:left;VLC:gray;S:http://blogs.salon.com/0001111/;GALT:blue;AWFID:ba6ecf243ae3d16f;"><br /> >span class="small"> <input type=radio name=sitesearch value="blogs.salon.com" checked>Search blogs.salon.com <input type=radio name=sitesearch value="">Search the Web</span><br /> </FORM>