# Site Search Functionality

- Link: https://www.thepiratescove.us/2005/05/01/site-search-functionality/
- Published: 2005-05-01T22:53:53-04:00
- Author: William Teach

Basil has a series going on Learning To Blog. He is on [Part VI: Site Search](http://www.basilsblog.net/2005/05/learning_to_blo.html#comments).
Just wanted to chip in my 2 gold dubloons, and add a little bit. Also, you can visit
Harvey,who really isn’t a [Bad Example](http://badexample.mu.nu/archives/039537.php),
and whose posts helped me alot when I first started. This is the code that I use
for Google site search:

<!– SiteSearch Google –>

<form method="get" action="[http://www.google.com/custom](http://www.google.com/custom)"
target="_top">
<table border="0" bgcolor="#6699CC"><tr><td nowrap="nowrap" valign
="top" align="left" height="32"><a href="[http://www.google.com/](http://www.google.com/)"
><img src="[http://www.google.com/logos/Logo_25wht.gif](http://www.google.com/logos/Logo_25wht.gif)"
border="0" alt="Google"></img></a><br/><input type="hidden" name="domains" value
="thepiratescove.us"></input><input type="text" name="q" size="21" maxlength="255"
value=""></input></td></tr><tr><td nowrap="nowrap"><font size="-1" color="#FFFFFF"
><input type="radio" name="sitesearch" value="thepiratescove.us" checked="checked"
></input>Pirate’s Cove<br><input type="radio" name="sitesearch" value=""></input
> Web<br>

</font>&nbsp;&nbsp;
<input type="submit" name="sa" value="Search"></input><input
type="hidden" name="client" value="pub-8614959142428937"></input><input type="hidden"
name="forid" value="1"></input><input type="hidden" name="ie" value="ISO-8859-1"
></input><input type="hidden" name="oe" value="ISO-8859-1"></input><input type="
hidden" name="cof" value="GALT:#006699;GL:1;DIV:#CCCCCC;VLC:006699;AH:center;BGC:
FFFFFF;

LBGC:FFFFFF;ALC:333333;LC:333333;T:666666;GFNT:CCCCCC;GIMP:CCCCCC;

FORID:1;">

</input>
<input type="hidden" name="hl" value="en"></input>

</td></tr></table>
</form><!– SiteSearch Google –>

It is a little more customizeable then the standard Google search. Here is what 
you do:

 1. The line that says table border, change the color code to the one you want.
 2. Change the 2 "thepiratescove.us" to your blogs address, as well as changing Pirate’s
    Cove to your blogs name.
 3. The line that says "input type="text" name="q" size="21"" change the number after
    size to what you need it to be. For me, with a 200 pixle wide sidebar, 21 is good.
 4. The line that says "font size="-1" color="#FFFFFF" change the color code to the
    one you want.

What are the color codes? One way to find them is to [go here](http://webmonkey.wired.com/webmonkey/reference/color_codes/).

Give it a shot.

**A slight update** during the 5 free minutes I have today: part of the code was
cut off, since no scroll. So, i have broken it up a little bit. Just to make sure
there are no errors, once you copy it, put the cursor right before the "input" that
is red, hit backspace. Then cursor before FORID, back space, then LBGC, backspace.

### Share this:

 * [Tweet](https://twitter.com/share)
 * [  Email ](https://www.thepiratescove.us/2005/05/01/site-search-functionality/?subject=%5BShared%20Post%5D%20Site%20Search%20Functionality&body=https%3A%2F%2Fwww.thepiratescove.us%2F2005%2F05%2F01%2Fsite-search-functionality%2F&share=email)
 * [  Bluesky ](https://www.thepiratescove.us/2005/05/01/site-search-functionality/?share=bluesky)
