Una consulta:
Si hago esto, porque no funciona?
Código:
Muchas gracias!<html> <head> <script languaje="Javascript"> document.write('<style type="text/css">div.ocultable{display: none;}</style>'); function MostrarOcultar(capa,enlace) { if (document.getElementById) { var aux = document.getElementById(capa).style; aux.display = aux.display? "":"block"; } } </script> </head> <body> <table> <tr> <td>Hola<br /> </tr> <tr> <td>Hola<br /> </tr> <tr> <td>Hola<br /> </tr> <div class="ocultable" id="ocultTable"> <tr> <td>Hola<br /> </tr> <tr> <td>Hola<br /> </tr> </div> </table> <a href="javascript:MostrarOcultar('ocultTable');" id="enlace1"> Mostrar/Ocultar</a> </body> </html>
Gustavo.