jquery get element left based on its parent position not window code example
Example: jquery get left position
var position = p.position();
var left = position.left; '<-- left value for p
var position = p.position();
var left = position.left; '<-- left value for p