开发者

how to insert images in web page from a firefox addon?

I have a firefox add-on I am writing, which injects javascript code into page when the page title changes.

I am adding some javascript content that builds html. I want to be able to view images inside the html and I want the images to be saved in the /content directory of my add-on. Is it possible?

B开发者_JAVA百科asically I think it's should be something like this:

  <img src="chrome://my_addon_id/content/images/download.jpg" />

However, it's not working.

A few tips of how to do that will be very helpful. Thanks.


Maybe you need to make your addon contentaccessible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜