Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/03/2008, 13:14
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Re: ¿Como puedo hacer esto?

te dejo un ejemplo espero q te sirva

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Toogle</title>
<script type="text/javascript">
	function blocking(nr)
 	{
 		if (document.layers){
 			current = (document.layers[nr].display == 'none') ? 'block' : 'none';
 			document.layers[nr].display = current;
 		}else if (document.all){
 			current = (document.all[nr].style.display == 'none') ? 'block' : 'none';
 			document.all[nr].style.display = current;
		}else if (document.getElementById){
 			vista = (document.getElementById(nr).style.display == 'none') ? 'block' : 'none';
 			document.getElementById(nr).style.display = vista;
		}
	}
</script>
</head>
<body>
   <a href="#" onclick="blocking('number1'); return false;" >Toogle</a>
   <div id="number1" style="display: block; width:400px; margin:0; border:1px solid #333; float:left;" >
  <p>
  Lorem ipsum te facer recteque interpretaris quo, ad prima ridens deleniti mel, ei vix amet tantas adipisci. Cum eligendi suavitate elaboraret in, aliquam impedit prodesset eum te. Te nam suas fabellas, vim sint dicta at. In atqui iusto soluta vi
  </p>
  </div> 
</body>
</html>