Visit Mozilla.org

插件

From MDC

插件(Plugins)其实就是二进制组件,这些组件在注册后可以用来显示那些,程序(比如:FireFox)本身并不能显示的内容。比如,Adobe Reader plugin让用户可以直接在浏览器中查看PDF格式的文件,QuickTime 和 RealPlayer plugins 则可以用来在网页中播放特定格式的视频文件。

Plugins can be useful when building an application using the Mozilla framework. For example ActiveState Komodo uses plugins to embed the Scintilla editor in its XUL-based UI.

插件使用NPAPI来编写,NPAPI是一个跨浏览器的插件API。NPAPI的主要文档来源自Gecko_Plugin_API_Reference。可以使用npruntime来使插件支持在网页中使用脚本交互。而老式编写插件的底层APIs的XPCOMLiveConnect应该避免去使用。除了编写插件外,这些技术仍然会被使用。

你可以使用SVGCanvas来完成简单的绘图和动画制作。

插件是给浏览器提供特殊功能支持的小软件, 比方说显示特定格式的图片,播放多媒体文件,等等。插件与扩展的区别在于,扩展是对现有功能的修改与增强。也不同于搜索插件(search plugins),区别是搜索插件是用来在搜索工具栏添加搜索引擎。

主要文章

Using the Right Markup to Invoke Plugins
This article is about how to invoke a plugin with the correct use of HTML. It discusses the object element and the embed element, with details about using the most apt HTML to invoke Java in a web page as well.
Using XPInstall to Install Plugins
XPInstall is a JavaScript-based installer technology that works across all the platforms that Mozilla and Netscape browsers based on Mozilla (such as Netscape 7) are deployed. It can be a way to ensure a smooth user-experience when obtaining plugins, without obliging the user to exit the browsing environment to launch a binary installer (the classic setup.exe experience on Windows) or obliging the user to restart their browser.
Detecting Plugins
"Since there are clearly times when it makes sense to use a plug-in, the question arises of how to deal with those who don’t have the required plug-in installed."

View All...

相关页面

相关话题

Gecko