fletchsod
Programmer
- Dec 16, 2002
- 181
I'm trying to apply the "absolute" position to the DOM object for non-IE browsers but Mozilla (or Firefox) does not recognize it. But the top and left position works for the "div" tag though. The IE browser works fine though.
Any suggestion or advice on getting absolute position to work for non-IE browsers?
Thanks...
Code:
var iLeft = "580px";
var iTop = "480px";
//Apply the location (center) to the "div" tag...
if (document.getBoxObjectFor) {
//All browsers except Internet Explorer...
oBusyBoxDivOuter.style.position = "absolute";
oBusyBoxDivOuter.style.left = iLeft;
oBusyBoxDivOuter.style.top = iTop;
}
else
{
//Internet Explorer's objects only...
oBusyBoxDivOuter.style.position = "absolute";
oBusyBoxDivOuter.style.pixelLeft = iLeft + document.documentElement.scrollTop;
oBusyBoxDivOuter.style.pixelTop = iTop + document.documentElement.scrollLeft;
}
Any suggestion or advice on getting absolute position to work for non-IE browsers?
Thanks...