Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/05/2010, 05:51
Dany_s
 
Fecha de Ingreso: diciembre-2009
Ubicación: Misiones
Mensajes: 867
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: Efecto Acordeon

y solo ocultar el que estaba activo, algo como:

Código HTML:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Prueba</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
$(function(){
	$("div").hide();
    $("h2:not(.active)").live('click', function (){
        $('.active').removeClass('active').next().slideUp();
        $(this).addClass("active").next().slideDown();
    });
});
</script>
</head>
<body>
    <h2>Uno</h2>
    <div>
        contenido uno
    </div>
    <h2>Dos</h2>
    <div>
        contenido dos
    </div>
    <h2>Tres</h2>
    <div>
        contenido tres
    </div>
</body>
</html>