Hola
xampion
Prueba este código:
Código PHP:
<html>
<head>
<script type="text/javascript">
function mostrar() {
obj = document.getElementById('pepe');
obj.style.display = (obj.style.display=='none') ? 'block' : 'none';
document.getElementById('enla').innerHTML = (obj.style.display=='none') ? 'Ocultar' : 'Mostrar';
}
</script>
</head>
<body>
<a href="#" id="enla" onclick = "mostrar(); return false">Mostrar</a>
<div id="pepe" style="display:none">Texto</div>
</body>
</html>
Mensaje movido al foro de JavaScript desde Css.
Saludos,