如何创建firefox3侧边栏? [英] How to create firefox3 sidebar?

查看:83
本文介绍了如何创建firefox3侧边栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Firefox 3中创建侧边栏,但不知道如何执行此操作.

Hi I want to create sidebar in Firefox 3 but have no clue how to do this.

我在MDC上找到了教程( https://developer.mozilla.org/en/Creating_a_Firefox_sidebar),但安装扩展名后无法解决与Firefox 3.0.3不兼容"错误.

I find tutorial on MDC (https://developer.mozilla.org/en/Creating_a_Firefox_sidebar) but after installation extension do not work with "not compatible with Firefox 3.0.3" error.

有人关于如何制作侧边栏的任何提示或链接吗?

Does anybody have any tip or link to some resource about how to make sidebar?

推荐答案

Well,一个Firefox扩展,无论是侧边栏,工具栏还是其他任何类型的扩展,基本上都是XUL和Javascript的混合,所有这些都很好地打包了一个名为XPI的安装程序包.

Well, a Firefox extension, be it a sidebar, toolbar or whatever other type of extension is basically a mix of XUL and Javascript, all packaged nice and tidy into an installer package called an XPI.

有关出色的XUL教程,请参见 http://xulplanet.mozdev.org/tutorials/xultu/. 有关构建扩展和程序包格式的信息,请参见 https://developer.mozilla.org/en/Building_an_Extension.

For an excelent XUL tutorial see http://xulplanet.mozdev.org/tutorials/xultu/. For information about building extensions and the package format see https://developer.mozilla.org/en/Building_an_Extension.

对于侧边栏,您基本上必须使用覆盖来覆盖浏览器的侧边栏区域.有关良好的叠加信息,请查看MDC和摘录,网址为 http://www.oreillynet .com/pub/a/mozilla/excerpt/FirefoxHacks_chap01/.

For a sidebar you basically have to override the browser's sidebar area by using an overlay. For good overlay information check out MDC and the excerpt at http://www.oreillynet.com/pub/a/mozilla/excerpt/FirefoxHacks_chap01/.

除了上面的链接之外,您所需要的就是XML知识,一些Javascript和富有创造力的思想.

All you need except the links above is knowledge of XML, some Javascript and a creative mind.

要解决上面遇到的问题,必须在 install.rdf 文件中指定正确的Firefox版本.对于Firefox 3,将maxVersion设置为:

To fix the problem you faced above, you have to specify the correct version of Firefox in the install.rdf file. For Firefox 3 set maxVersion to:

        <em:maxVersion>3.*</em:maxVersion>

这篇关于如何创建firefox3侧边栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆