我認爲標題解釋了這一切,但無論如何,我正在深入探討我的問題:在個人網站上使用Google Chrome的OmniBox [TAB]功能嗎?
如何使用Chrome的Omnibox [TAB]功能用於我的網站?
由於許多用戶要求我在網站上實現該功能,因此我對OpenSearchDescription進行了研究,並且使用FireFox和IE7/IE8 Searchbar非常成功地實現了該功能。
然而,執行沒有爲Chrome網址列,[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>
這是鏈接到我的網頁上顯示的菜單文件:
<link rel="search" type="application/opensearchdescription+xml" title="MySite" href="/opensearch.xml" />
從來不知道我們可以做到這一點,感謝意外讓我知道。 – HyderA 2009-08-23 00:45:24
[How to add google chrome omnibox-search support for your site?](http://stackoverflow.com/questions/7630144/how-to-add-google-chrome-omnibox-search-support-for-您的網站) – 2012-10-28 10:01:18