Pongamos un menú o listado:
Opcion 1
Opcion 2
Opcion 3
....
si pincho en 0pción 1, debe aparecer un texto que no desplace hacia abajo a 2 y 3, como me hace ahora.
Código
Código:
he visto algo de caricatos por el foro, pero no consigo aplicarlo a mi ejemplo...<script> // definiciones basicas OCULTO="none"; VISIBLE="block"; function mostrar(blo) { document.getElementById(blo).style.display=VISIBLE; document.getElementById('ver_off').style.display=VISIBLE; document.getElementById('ver_on').style.display=OCULTO; } function ocultar(blo) { document.getElementById(blo).style.display=OCULTO; document.getElementById('ver_off').style.display=OCULTO; document.getElementById('ver_on').style.display=VISIBLE; } </script> <div id="ver_on"><a href="#" onclick="mostrar('bloque')">Ver más</a></div> <div id="ver_off" style="display: none"><a href="#" onclick="ocultar('bloque')">Ver menos</a></div> <div id="bloque" style="display: none">Texto a mostrar u ocultar</div>
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)