Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/11/2010, 14:00
sysmadryn
 
Fecha de Ingreso: septiembre-2004
Ubicación: La Plata Argentina
Mensajes: 128
Antigüedad: 20 años, 6 meses
Puntos: 9
Respuesta: Mostar Mensaje

Prueba :

<html>
<head>

<script>
var GEBI = document.getElementById,d;
onload = function(){
GEBI("div1").onclick = function(){GEBI("div1").style.display="none"};
GEBI("bu").onclick= function(){
GEBI("div1").innerHTML = "tu mensaje";
GEBI("div1").style.display="block";
}
}


</script>

</head>
<body>
<button id="bu">oprime para ver el mensaje</button>
<div id="div1" style="display:none;z-index:3;position:absolute;top:40%;left:20%">hola</div>


</body>
</html>


Saludos