加速器 (Internet Explorer)

本页使用了标题或全文手工转换
维基百科,自由的百科全书
加速器
开发者微软
最新版本
0.8
扩展自XML
免费格式?

加速器Accelerator)是由微软Internet Explorer 8中引入的一种搜索选定内容英语Selection-based searchSelection-based search)的方式,它可使用户仅通过滑鼠就能调用任意第三方页面的在线服务[1]。当用户选中文本或其它对象时,加速器图标将会出现,之后用户就可为所选对象调用可用的加速器服务(例如使用选中文字写blog或者查看选中地理位置的地图)。微软称,加速器使用户不必再在网页之间进行复制粘贴。[2]IE8指定了一种XML编码方式,使网络应用网络服务可以加速器的形式被调用,而服务将被如何调用及调用后展示什么类型的内容,则会由XML文件指定。[3]已有人指出了加速器和曾在IE6 Beta版中测试却因争议批评后而取消(虽然后来包括了在Microsoft Office中)的智慧标记间的相似特性。[4]

历史[编辑]

微软在IE8 Beta1中以“activities”为名引进加速器,后来其改名“accelerators”。

IE8[编辑]

加速器默认以加载项的类型被包括。

示例加速器[编辑]

这是一个使用OpenService格式的地图加速器示例:

<?xml version="1.0" encoding="UTF-8"?>
<openServiceDescription xmlns="http://www.microsoft.com/schemas/openservicedescription/1.0">
  <homepageUrl>http://www.example.com</homepageUrl>
  <display>
    <name>Map with Example.com</name>
    <icon>http://www.example.com/favicon.ico</icon>
  </display>
  <activity category="map">
    <activityAction context="selection">
      <preview action="http://www.example.com/geotager.html">
        <parameter name="b" value="{selection}"/>
        <parameter name="clean" value="true"/>
        <parameter name="w" value="320"/>
        <parameter name="h" value="240"/>
      </preview>
      <execute action="http://www.example.com/default.html">
        <parameter name="where1" value="{selection}" type="text"/>
      </execute>
    </activityAction>
  </activity>
</openServiceDescription>

参见[编辑]

参考资料[编辑]

  1. ^ New and exciting features. 微软. [2008-03-05]. (原始内容存档于2008-03-07). 
  2. ^ Mary Jo Foley. IE 8 to feature WebSlices, Activities. CNet Blogs. [2007-03-05]. (原始内容存档于2008-03-06). 
  3. ^ How do I make my site 'light up' with Internet Explorer 8?. 微软. [2008-03-05]. (原始内容存档于2008-03-07). 
  4. ^ Paul Thurrott. Internet Explorer 8 Beta 1 Review. Windows IT Pro. [2008-03-12]. (原始内容存档于2008-03-14). 

外部链接[编辑]

开发[编辑]

维基媒体基金会加速器[编辑]