Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/11/2008, 12:40
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: Posisionar div

No miré todo, pero pixelTop y pixelLeft no son propiedades estandar (creo que no se usan desde Explorer 4 o algo así). deberías usar algo como:
Código PHP:
var t=parseInt($(id).style.top);
var 
l=parseInt($(id).style.left); 
Si es que tienen definido un top y un left con el atributo style, si no, tendrías que usar algo como esto:
Código PHP:
var l;
if( 
window.getComputedStyle ) {
  
window.getComputedStyle($(id),null).left;
} else if( $(
id).currentStyle ) {
  
= $(id).currentStyle.left;