|
Recipe for adding a Search Function to your site
Departments who host their sites on the Wesleyan server can easily add a search
engine to their site.
To do so, simply cut and past the example below onto your site, and change
the parts of the code indicated in red.
Example:
This is an example drawn from the Davison Art Center site at http://www.wesleyan.edu/dac/
.
| The code for this example is below, with the sections that
need editing highlighted in red. |
<form action="http://www.wesleyan.edu:4000/querywes.html"
method="get" name="seek1">
<table border="1" cellPadding="0"
cellSpacing="0" width="464">
<tbody>
<tr>
<td>
<table border="0" cellPadding="2"
cellSpacing="0" width="462">
<tbody>
<tr>
<td width="150"></td>
<td width="40"></td>
<td width="140"></td>
<td width="132"></td>
</tr>
<tr>
<td align="left" colSpan="4" vAlign="center"
width="462"><font face="Palatino, Times, Times
Roman" size="3"> <a
name="search">Search</a>
- for: </font><input maxLength="200"
name="qt" size="44"></td>
</tr>
<tr>
<td align="left" colSpan="2" vAlign="center"
width="190"><font face="Palatino, Times, Times
Roman" size="3"> Hits
- per list: </font><select name="nh"
size="1">
<option value="3">3
- <option selected value="10">10
- <option value="30">30
- <option value="100">100</option>
</select></td>
<td align="middle" vAlign="center"
width="140">
- <input CHECKED name="qp" type="radio"
value="url:www.wesleyan.edu/dac">
- <font face="Palatino, Times, Times Roman"
size="3">DAC site only<br>
</font>
- <input name="qp" type="radio" value>
- <font face="Palatino, Times, Times Roman"
size="3">Wesleyan site<br>
</font>
- <input name="col" type="hidden" value="wesleyan">
- <input name="qc" type="hidden" value="wesleyan">
- <input name="qm" type="hidden"
value="0">
<input name="st" type="hidden"
value="1">
- <input name="lk" type="hidden"
value="1">
<input name="rf" type="hidden"
value="0">
- <input name="rq" type="hidden"
value="0">
<input name="oq"
type="hidden">
- <input name="qs" type="hidden">
<input name="ws" type="hidden"
value="0"></td>
<td align="middle" vAlign="center"
width="132">
- <a href="http://www.inktomi.com/products/search/">
- <img alt="infoseek" border="0" hspace="4"
src="infosmall.gif" vspace="8"
width="100" height="20"></a></td>
</tr>
<tr>
<td align="middle" vAlign="center"
width="150">
- <input type="submit" value=" Perform Search
"></td>
<td align="left" colSpan="3" vAlign="top"
width="312">
- <font face="Palatino, Times, Times Roman"
size="1">Performing
- a search will take you out of the DAC site;
your
- browser's "Back" button can
return you to
- it.
<a href="http://www/dac/tech/search.html">Searching
- tips</a></font></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</form>
|
|