通过rel="search",把你的搜索功能放到浏览器的快捷搜索工具上用firefox打开taobao时,看一下地址栏边上的快捷搜索时,可以填加一个“淘宝搜索”,完成后,以后就可以直接在那里搜索东西了!实现方法:在首页的head标签里加上 “<link rel="search" type="application/opensearchdescription+xml" href=provider.xml" title="关键词搜索" />” provider.xml的写法为: <?xml version="1.0" encoding="utf-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <InputEncoding>UTF-8</InputEncoding> <ShortName>关键词搜索</ShortName> <Description>关键词搜索</Description> <Image height="16" width="16" type="image/vnd.microsoft.icon">images/favicon.ico</Image> <Url type="text/html" template="search.PHP?keyword={searchTerms}" /> </OpenSearchDescription>
通过rel="search",把你的搜索功能放到浏览器的快捷搜索工具上
用firefox打开taobao时,看一下地址栏边上的快捷搜索时,可以填加一个“淘宝搜索”,完成后,以后就可以直接在那里搜索东西了!
实现方法:
在首页的head标签里加上 “<link rel="search" type="application/opensearchdescription+xml" href=provider.xml" title="关键词搜索" />”
provider.xml的写法为: