A couple of notes regarding absolute positioning in FF and IE...
Specifying position values:
- IE allows you to omit the unit of measurement for Left and Top. It assumes pixels eg:
obj.style.Left = 10;
- However FF requires that you specify the unit of measurement eg:
obj.style.Left = "10px";
Using other elements parents to calculate your object's position:
The scenario might be you have a div that you want to position over or by another object - but that object has no position values. In this case I use parent object values.
- Don't use the IE specific property parentElement (this is not supported in other browsers) eg:
obj.style.Left = otherObj.parentElement.offsetLeft + 10;
note in this example (that works in IE only) there is no unit of measurement.
- Instead use the parentNode property (this works for both IE and FF) eg:
obj.style.left = (otherObj.parentNode.offsetLeft + 10) + "px";
HTH
Tim