857Chapter 31 .Positioned Objects Properties Methods Event Handlers

857Chapter 31 .Positioned Objects Properties Methods Event Handlers clip.top moveToAbsolute() document releaseEvents() left resizeBy() name resizeTo() pageX routeEvent() pageY parentLayer siblingAbove siblingBelow src top visibility zIndex Syntax Accessing layer object properties or methods: [window.]document.layerName.[document.layerName. …] property | method([parameters]) [window.]document.layers[index].[document.layerName. …]property | method([parameters]) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . About this object You can create a layer object in NN4 in one of three ways. The first two ways use NN4-only syntax: the tag in HTML and the new Layer() constructor in JavaScript. The tag offers numerous attributes that establish the location, stacking order, and visibility. These attributes, in turn, become scriptable properties. If you create the layer through the constructor, you then use JavaScript to assign values to the object s properties. The third way to create an NN4 layer object is to assign an absolute-positioned style sheet rule to a block-level element most typically a DIV element. This is the way that IE4+ and NN6 do it, too. In practice, however, a positioned DIV element is not as robust (from rendering and scriptability standpoints) in NN4 as a genuine LAYER element. Therefore, it is sometimes necessary to branch a page s code to use document.write()for a tag in NN4 and a

tag in IE4+ and NN6. document.layerObject
In case you need quality webspace to host and run your web applications, try our personal web hosting services.

Leave a Reply