Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/10/2011, 06:49
Dany_s
 
Fecha de Ingreso: diciembre-2009
Ubicación: Misiones
Mensajes: 867
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: expandir un div y cerrar otro antes expandido

Código Javascript:
Ver original
  1. expandido = null;
  2. $('.contenedor .titulo').click( function (){
  3.     if (expandido){
  4.         expandido.animate({height: alturaMinima},1000);
  5.     }
  6.     expandido = $(this).prev().animate({height: alturamaxima},1000);
  7. });