Ver Mensaje Individual
  #8 (permalink)  
Antiguo 12/07/2009, 11:21
Avatar de zerokilled
zerokilled
Javascripter
 
Fecha de Ingreso: abril-2009
Ubicación: Isla del Encanto, La Borinqueña [+>==]
Mensajes: 8.050
Antigüedad: 15 años, 10 meses
Puntos: 1485
Respuesta: Contenido Desplegable

compara el codigo con el siguiente y estudia donde se hicieron los cambios:
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>Documento sin t&iacute;tulo</title>
<script type="text/javascript">
function nombre_funcion(){
var obj = document.getElementById("id_DIV");
if (obj.style.display == "none")  obj.style.display= ""; // un string vacio o "block";
else obj.style.display= "none";
}
</script>
</head>
<body>
<a href="javascript:void(0)" onclick="nombre_funcion();">Mostrar Contenido</a>
<div id="id_DIV">
bla bla bla bla bla
bla bla bla bla bla
bla bla bla bla bla
    Responder Citando
</div>


</body>
</html>
__________________
la maldad es una virtud humana,
y la espiritualidad es la lucha del hombre contra su maldad.