Hola
Prueba con esto
Código javascript
:
Ver originalPosElemento: function(elElem) {
if (typeof elElem == "string")
elem = document.getElementById(elElem)
if (!elem) return { top:0,left:0 };
var y = 0;
var x = 0;
while (elem.offsetParent) {
x += elem.offsetLeft;
y += elem.offsetTop;
elem = elem.offsetParent;
}
return {top:y,left:x};
}
posicionInicialLeft = parseInt(PosElemento.left);
posicionInicialTop = parseInt(PosElemento.top);
Suerte