我认为标题解释了这一切,但我还是更深入地研究了我的问题:
如何在我的网站上使用Chrome的Omnibox [TAB]功能?
由于许多用户要求我在网站上实现该功能,我对OpenSearchDescription进行了研究,并且在使用FireFox和IE7/IE8搜索栏时非常成功.
然而,实施对Chrome Omnibox [TAB]功能并不起作用.
你能帮帮我吗?
我的OSD.xml代码:
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>MySite</ShortName>
<Description>My Site</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">http://MySite.com/favicon.ico</Image>
<Url type="application/x-suggestions+json" method="GET"
template="http://ff.search.yahoo.com/gossip?output=fxjson&command={searchTerms}" />
<Url type="text/html" method="POST" template="http://MySite.com/query.php">
<Param name="sString" value="{searchTerms}"/>
</Url>
<Url type="application/x-suggestions+json" template="suggestionURL"/>
<moz:SearchForm>http://www.MySite.com</moz:SearchForm>
</OpenSearchDescription>
Run Code Online (Sandbox Code Playgroud)
这是我页面上osd文件的链接:
<link rel="search" type="application/opensearchdescription+xml" title="MySite" href="/opensearch.xml" />
Run Code Online (Sandbox Code Playgroud) 我正在寻找一种方法在我的网站上启用谷歌浏览器的"标签搜索"功能,有没有人有这方面的经验?
谷歌没有为我提供足够的信息,我猜这个社区更快.
非常感激
我有一个关于如何为我自己的网站启用谷歌浏览器中的"按选项卡搜索"功能的问题.
我已经链接了一个opensearch.xml文档,我有以下内容:
<Url type="text/html" template="http://localhost:3000/?search={searchTerms}"/>
然而,这仍然无法奏效.难道我做错了什么?
谢谢!