How to add your search engine to Firefox

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.