目前两个文件,
a.htm
<a href="#"
onclick="window.external.AddSearchProvider('C:\Documents and Settings\Genthelvite\桌面\search.xml')"
>Add Search Provider Example</a>
search.xml
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:ie="http://schemas.microsoft.com/Search/2008/">
<ShortName>My Custom Search</ShortName>
<Image height="16" width="16" type="image/icon">http://example.com/example.ico</Image>
<Url type="text/html" template="http://example.com/search.aspx?q={searchTerms}&source=IE"/>
<Url type="application/x-suggestions+json" template="http://suggestions.example.com/search.aspx?q={searchTerms}"/>
<Url type="application/x-suggestions+xml" template="http://suggestions.example.com/search.aspx?q={searchTerms}"/>
<ie:PreviewUrl type="text/html" template="http://suggestions.example.com/search.aspx?q={searchTerms}"/>
</OpenSearchDescription>
我想自己做个搜索到ie中,现在执行a.htm后点击超链接,提示无法安装该搜索提供程序,请问该如何改呢