|
DOCJSLIB Version 2.0 supported the setPosFromLeft() function for horizontal positioning. Version 3.0 adds a matching function, setPosFromTop():
function docjslib_setPosFromTop(id, yCoord) {
if (NS4) {eval("document." + id).top = yCoord}
else {eval("document.all." + id).style.top = yCoord}
}
This functions has two parameters:
id: The element ID, specified by function's caller.
yCoord: The distance between the element's top edge and the window's top edge.
As previously explained in this and previous columns, top is a property of the DHTML element on Netscape Navigator, but it is a property of the style object on Internet Explorer.
             
|