Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/12/2010, 16:23
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Obtener 50% de width y height de objeto

es scrollHeight y scrollWidth, no height ni width
Cita:
var mitadAncho = objeto.scrollWidth / 2;
var mitadAlto = objeto.scrollHeight / 2;