If you create a search engine (or intra-site search), you will certainly want to make it easier for users to use.
In Firefox, it provides a search toolbar. How can we add the toolbar to our search?
The search toolbar in Firefox is a protocol based on open search. This protocol is very simple.
Let's look at a simple example (http://www.lookcode.net) the site used
<? XML version = "1.0"?>
<Opensearchdescription xmlns = "http://a9.com/-/spec/opensearch/1.1/">
<Shortname> lookcode </shortname>
<Description> Search for programming, hacking, cracking, and Computer-Related Information </description>
<Inputencoding> UTF-8 </inputencoding>
<Image Height = "16" width = "16" type = "image/X-icon"> http://www.lookcode.net/images/Lookcode.ico </image>
<URL type = "text/html" method = "get" template = "http://www.lookcode.net/search.aspx? Q = {searchterms} & amp; client = Firefox-a "/>
</Opensearchdescription>
Put the code in an XML file opensearch. xml
Then add
<LINK rel = "Search" type = "application/opensearchdescription + XML" Title = "lookcode" href = "http://www.lookcode.net/opensearch.xml">
OK
In this case, you use Firefox to open your page.
You can see "add lookcode" in the search box"
Add it. Test it. OK.
Currently, two browsers support opensearch.
Ie7.0 is not installed and not tested
Firefox2.0 passed the test
For more information, see the http://www.opensearch.org/Home opensearch
Note: You may need such a tool to convert image2ico when creating an icon.