Ver Mensaje Individual
  #12 (permalink)  
Antiguo 11/08/2010, 18:59
walrus86
 
Fecha de Ingreso: junio-2010
Mensajes: 155
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: dos dudas con JQUERY

Código:
$(document).ready(function(){

    $(".titulo").click(function(){

        if (typeof last != 'undefined'){
            if (last != $(this).closest('.contenedor').find('.cuerpo')){
                last.animate({width: "0px"}, 500, function(){
                    $(this).css({display:"none"});
                });
                last = $(this).closest('.contenedor').find('.cuerpo').animate({width: "396px"}, 500);
            }
        }
        else{
            last = $(this).closest('.contenedor').find('.cuerpo').animate({width: "396px"}, 500);
        }
    });
});

Última edición por walrus86; 11/08/2010 a las 19:18