[USPS-Webmasters] New Search Function
Dave Hinders
dlhboat at frontiernet.net
Sun Jan 13 16:58:34 EST 2008
This message is intended for national webmasters. If you are not the
webmaster for a national page, you can delete this.
On 8 Jan 2007, a new search function was installed on the national site.
This is a Google Search Engine customized for the USPS site. The majority
of our pages are now using this new search function w/o making any changes.
These pages are those which have maintained the standard templates. In Oct
2006, when we made the last update to the templates, a setSearch() call was
added which installs the search function.
Please check your pages to determine whether you have the old or new
functions. The old function has a "Search" button and a "Clear" button.
The new function has only the "Search" button. There are 3 things required:
1. The page must include stdUtil.js.
2. The page must have <div id="search"> which holds the search form.
3. The page must have a call to setSearch().
Excerpts from the templates are included to show each item.
ITEM 1
<!-- Begin USPS Utility -->
<script src =
'http://www.usps.org/national/newdesign/std_tmplt/stdUtil.js'></script>
<!-- End USPS Utility -->
ITEM 2
<div id="search">
<form action="/cgi-bin/nsearch.cgi?national" method="POST">
<input type="hidden" name="simple" value="simple"><center>
<label>Site Search </label>
<input type="text" size="20" name="search1" value="Search for..."
onFocus="if(this.value=='Search for...')this.value='';" >
<input type="submit" value="Search"> <input type="reset"
value="Clear">
</center>
</form>
</div>
ITEM 3
<script type = "text/javascript">setSearch()</script>
We would like to complete the transition ASAP, so your prompt attention will
be appreciated. I'll be glad to answer any questions.
Cheers,
Dave Hinders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.usps.org/pipermail/usps-webmasters/attachments/20080113/6fcee6f6/attachment.html
More information about the USPS-Webmasters
mailing list