Mozilla doesn't support the <layer> tag because it was rejected for the
HTML standard. Instead, you can use <iframe> or <object> tags to embed
documents. Also, by setting the id attribute with tags like <span>,
<div> or <p>, you can then use document.getElementById to manipulate
those elements with JavaScript. For example, assuming <div id='foo'>:
var node = document.getElementById("foo");
node.style.visibility="hidden";
node.style.left=100;
node.style.top=200;
node.style.visibility="visible";
etc.
In effect, this makes every element with an id a potential layer.
h~