Layers were the core of a method of dynamic HTML programming specific to Netscape 4. Each layer was treated as a separate document object in JavaScript. The content could be included in the same file within the non-standard But in modern browsers, the functionality of layers is provided by using an absolutely-positioned Irrelevant to the actual use of layers, when Netscape 4 and Internet Explorer had significantly different JavaScript implementations, a JavaScript program would very often need to run different blocks of code, depending on the browser. To decide which bunches of code to run, a JavaScript program would test for support for layers, regardless of whether the program involved layers at all. Namely,layer element (or any other element with the positioning set to "absolute" via CSS) or loaded from a separate file with or layer = new Layer constructor. The content would then be inserted into the layer with layer.document.write.
div, or, for loading the content from an external file, an IFrame.
Famous quotes containing the words layer and/or element:
“This world is run by people who know how to do things. They know how things work. They are equipped. Up there, theres a layer of people who run everything. But wewere just peasants. We dont understand whats going on, and we cant do anything.”
—Doris Lessing (b. 1919)
“The geometry of landscape and situation seems to create its own systems of time, the sense of a dynamic element which is cinematising the events of the canvas, translating a posture or ceremony into dynamic terms. The greatest movie of the 20th century is the Mona Lisa, just as the greatest novel is Grays Anatomy.”
—J.G. (James Graham)