Fwd: setting up a search function on a web page.

Date view Thread view Subject view Author view

From: Jeanne Moje (jmmoje@uclink4.berkeley.edu)
Date: Mon Oct 21 2002 - 10:30:52 PDT


Info on how to set up a search function with Google's free search service:

(Additional information about Google can be found at http://www.google.com/about.html)

This code will give you a search text box with three radio buttons:

<!-- Search Google -->
<CENTER>
<FORM method=GET action=http://www.google.com/custom>
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
<TR valign=top>
<TD>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=sa VALUE="Search">
<INPUT type=hidden name=cof VALUE="AH:center;GL:0;AWFID:3c418eca4da66a35;">
<font size=-1>
<input type=hidden name=domains value="www.berkeley.edu;--your web server address here--"><br>
<input type=radio name=sitesearch value="" > Search the world
<input type=radio name=sitesearch value="www.berkeley.edu"> Search Cal
<input type=radio name=sitesearch checked value="--your website address here--"> Search --your website address here--</font>
<br>
</TD>
</TR>
</TABLE>
</FORM>
</CENTER>
<!-- Search Google -->

~~~~~~~~~~~~~~~~~~~~~~~~~

This code will give you a search box without radio buttons:

<!-- Search Google -->
<FORM method=GET action=http://www.google.com/custom>
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
<tr valign=top>
<td>
<INPUT TYPE=text name=q size=25 maxlength=255 value="">
<INPUT type=submit name=sa VALUE="Search">
<INPUT type=hidden name=cof VALUE="AHcenter;GL0;AWFID3c418eca4da66a35;">
<input type=hidden name=domains value="www.berkeley.edu;--your web server address here--">
<input type=hidden name=sitesearch value="--your website address here--">
</td>
</tr>
</TABLE>
</FORM>
<!-- Search Google -->

~~~~~~~~~~~~~~~~~~~~~~~~

Regards

Jeanne Moje


X-Authentication-Warning: uclink4.berkeley.edu: majordom set sender to owner-webnet-list@listlink.berkeley.edu using -f
X-Sender: jamilieb@uclink4.berkeley.edu
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Mon, 21 Oct 2002 10:07:04 -0700
To: webnet-list@uclink4.berkeley.edu
From: *Jami Lieb* <jamilieb@uclink4.berkeley.edu>
Subject: [Webnet] setting up a search function on a web page.
Sender: owner-webnet-list@uclink4.berkeley.edu

Help requested:
I recently took over a very large campus website that has a poor search engine.
The search takes you way out into internet land and doesn't search the website at all.
I only want the website to have a search that searches within the website only.
It's a website of 300+ links in alphabetical order.

Any help would be appreciated.

*********************************************************
Jami Lieb
Chancellor's Communications & Resource Center

216 California Hall #1500
510-642-0867
********************************************************

-----------------------------------------------------------------------
The following was automatically added to this message by the list server:

Webnet information is available at <URL:http://webnet.berkeley.edu/>.

~~~~~~~~~~~~~~~~~~~~~~~~
Jeanne Moje, Programmer/Analyst
VC B&F - Computing Op & Info Systems
2105 Bancroft Way
University of California, Berkeley
~~~~~~~~~~~~~~~~~~~~~~~~
http://cois.vcbf.berkeley.edu
~~~~~~~~~~~~~~~~~~~~~~~~
jmmoje@uclink4.berkeley.edu
(510) 643-9391 * fax (510) 643-2250
~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------------------- The following was automatically added to this message by the list server: Webnet information is available at .


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 21 2002 - 10:33:38 PDT