codice:
function getCoords(element) {
var coords = {x: 0, y: 0};
while (element) {
coords.x += element.offsetLeft;
coords.y += element.offsetTop;
element = element.offsetParent;
}
return coords;
}
in
getCoords(document.getElementById('id_tabella')).x
avrai la distanza dal margine sinistro della finestra della tua tabella

ciao