How to add
a search form to your page that only searches your content:
Copy and paste this section of code into your web page. When
you paste, right-click and choose "Paste Special" then choose
"treat as HTML"
<form method="GET" action="http://www.google.com/u/uoe">
<p>Search our site:<br>
<input id="keywords" style="font-family: verdana, arial,
sans-serif; font-size: 8pt;" type="text" name="q"
size="40">
<label for="submit"></label><input
id="submit" type="submit" name="sa"
value="Go!"><input type="hidden" name="sitesearch"
value="missouri.edu">
<input type="hidden" name="domains" value="missouri.edu">
<input type="hidden" name="hq" value="inurl:outreach.missouri.edu/webteam"></p>
</form>
This is what will appear:
Next, right-click over the form area and choose "Form Properties"
Click "Advanced"
Highlight the option that says hq under "name".
Click "modify"
Change the last part of the URL to the directory path for your web site.
This will restrict search results to only pages with this URL.
For example, if you want to search just your county newsletter archive, your
path might look like this:
inurl:outreach.missouri.edu/callaway/newsletters/archive
Click OK to get back to your page. Save and test your search
form.
(Note, if you don't change this setting, your search will only yield
results from the /webteam/ section of our site, not your own content.)
|