Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/08/2005, 17:20
Avatar de isaacluz
isaacluz
 
Fecha de Ingreso: marzo-2005
Mensajes: 180
Antigüedad: 20 años
Puntos: 0
Aqui uno de ejemplo.. usé tablas para contener los datos.. tú los acomodas a como te convenga...

Código:
<script type="text/javascript">
function MostrarEsconder(Elemento,Link){
	Documento=document
	Objeto=(Documento.all)?Documento.all[Elemento]:Documento.getElementById(Elemento);
	if(!Objeto.Contador)Objeto.Contador=0;
	Objeto.style.display=(Objeto.Contador++%2)?"none":"";
	Link.innerHTML=(Objeto.Contador%2)?"(-)":"(+)";
	return false
}
</script>
<table width="100"  border="1" cellspacing="0" cellpadding="2">
<tr><td>
	titulo, fecha <a href="#" onClick="return MostrarEsconder('Noticia1',this)">(+)</a></td>
</tr>
<tr><td id="Noticia1" style="display:none;">
	autor, descripcion, leer este art...bla, bla bla, bla.....
</td></tr>
</table>
<hr>
<table width="100"  border="1" cellspacing="0" cellpadding="2">
<tr><td>
	titulo, fecha <a href="#" onClick="return MostrarEsconder('Noticia2',this)">(+)</a></td>
</tr>
<tr><td id="Noticia2" style="display:none;">
	autor, descripcion, leer este art...bla, bla bla, bla.....
</td></tr>
</table>

Última edición por isaacluz; 29/08/2005 a las 13:17