Hey, I would like to use an image in firefox extension I am developing. Can someone tell me how to include the image. I used the following but it did not work.
var divTag = content.document.createElement("img");
divTag.id = "div1";
divTag.src="chrome://ff_extension/content/image1.gif";
divTag.setAttribute("align","center");
divTag.style.margin = "0px auto";
divTag.style.position="fixed";
divTag.style.bottom="0px";
divTag.style.height="22px";
divTag.style.width="100%";
content.document.getElementsByTagName('body')[0].appendChild(divTag);
Thanks.