Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/04/2005, 10:32
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Hola de nuevo.

A ver si este ejemplo sirve de ayuda:
Código PHP:
<html>
<
head>
<
style type="text/css">
#publi {width:200px;height:150px;border:1px solid black}
#x {border:1px solid black;width:20px;height:20px;float:right}
</style>
<
script type="text/javascript">
function 
cerrar() {
  
document.body.removeChild(document.getElementById('publi'));
}
</script>
</head>
<body>
<div id="publi">
<div id="x" onclick="cerrar()">X</div>
<p>Esto es solo publicidad</p>
</div>
</body>
</html> 
Saludos, :adios.