Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/11/2008, 07:31
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
Puntos: 834
Respuesta: Position: absolute -> Position : fixed

Quizá te sirva esta función para obtener las coordenadas:
Código PHP:
function getElementPosition(elemID) {
var 
offsetTrail document.getElementById(elemID);
var 
offsetLeft 0;
var 
offsetTop 0;
while (
offsetTrail) {
offsetLeft += offsetTrail.offsetLeft;
offsetTop += offsetTrail.offsetTop;
offsetTrail offsetTrail.offsetParent;
}
if (
navigator.userAgent.indexOf("Mac") != -&& typeof document.body.leftMargin != "undefined" && navigator.appName=="Microsoft Internet Explorer" ) {
offsetLeft += parseInt(document.body.leftMargin);
offsetTop += parseInt(document.body.topMargin);
}
return {
left:offsetLefttop:offsetTop};
}
//ejemplo left de elemento con id="pepe": alert(getElementPosition('pepe').left);