Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/12/2005, 17:58
Avatar de Mauri1
Mauri1
 
Fecha de Ingreso: noviembre-2002
Ubicación: Santiago de Chile
Mensajes: 558
Antigüedad: 22 años, 3 meses
Puntos: 0
Hola Rober7

Probé el código que pusiste y no me funciona, nosé si estará bien así:

Código:
<a href="javascript:expander()">Capa</a>
 
<script language="javascript">
function expander(bloque, flecha){
if (bloque.style.display=="none"){
bloque.style.display=="";
flecha.src="archivo2";
}
else{bloque.style.display=="none";
flecha.src="archivo1";
 }
}
</script>
 
<div id="nombre" style="display:none">
<table width="100" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>hola</td>
  </tr>
</table>
</div>
Dentro de expander nosé que poner

Cita:
javascript:expander()