google search

Document Sample
google search Powered By Docstoc
					 <form method="get" action="http://www.google.com/search">


 <input type="text"            name="q" size="31"
  maxlength="255" value="" />
 <input type="submit" value="Google Search" />
 <input type="radio"           name="sitesearch" value="" />
  The Web
 <input type="radio"           name="sitesearch"
  value="askdavetaylor.com" checked /> Ask Dave Taylor<br />


 </form>

There are some additional tweaks we can apply to make it a bit more
fancy, including changing the radio buttons to a single check box, and
aligning things a bit more nicely using a table and some simple CSS:
 <form method="get" action="http://www.google.com/search">


 <div style="border:1px solid black;padding:4px;width:20em;">
 <table border="0" cellpadding="0">
 <tr><td>
 <input type="text"            name="q" size="25"
  maxlength="255" value="" />
 <input type="submit" value="Google Search" /></td></tr>
 <tr><td align="center" style="font-size:75%">
 <input type="checkbox"             name="sitesearch"
  value="askdavetaylor.com" checked /> only search Ask Dave Taylor<br />
 </td></tr></table>
 </div>


 </form>

Here's how that renders when included on an HTML page:


                              Google Search


            only search Ask Dave Taylor

If you'd like to use this on your own site, simply change the
occurrences of askdavetaylor.com as appropriate.

Not too hard at all!

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:21
posted:2/16/2012
language:
pages:1