860 Part III . Document Objects Reference It (Florida web design)
Thursday, January 31st, 2008860 Part III . Document Objects Reference It may seem odd that a reference to an object at a different layer level is shorter than one at the same level (for example, the color layer), but the route to the parent layer is shorter than going via the parent layer to a sibling. Finally, to reach the value of the emailAddrfield in the base document, the reference must ratchet out one more layer as follows: parentLayer.parentLayer.document.forms[0].emailAddr.value The two parentLayer entries step the reference out two levels, at which point the scope is in the base layer containing the main document and its form. Layers and tables The document-centered nature of NN4 layers also makes it difficult if not impossible at times to incorporate them inside tables. Even defining a layer that is contained by a TD table cell can cause countless problems. If you need to have absolute-positioned elements that look as though they are part of a table, I suggest you define the layers as freestanding elements outside of the table. After that, you can position the layers to make them look like they live in the table. You may also need to create empty placeholders in your table to make room for the overlaid layer. You can do this by way of a relative-positioned element inside the table cell whose visibility is hidden. This allows the element to flow as the page loads to accommodate the current browser window dimensions. Scripts can then read the location of the relative-positioned element and use those coordinates to move the absolute-positioned elements that are to overlay the hidden elements. Properties above below siblingAbove siblingBelow Value: Layer object Read-Only NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . Each layer object is its own physical layer. Given that the variables x and y traditionally represent width and height, the third dimension the position of a layer relative to the stack of layers is called the z-order. Layer orders are assigned automatically according to the loading order, with the highest number being the topmost layer. That topmost layer is the one closest to you as you view the page on the monitor. If two layers are on a page, one layer must always be in front of the other even if they both appear to be transparent and visually overlap each other. Knowing which layer is above the other is important for scripting purposes, especially if your document.layerObject.above
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.