Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/08/2007, 13:43
hispamaster
 
Fecha de Ingreso: octubre-2005
Mensajes: 50
Antigüedad: 19 años, 3 meses
Puntos: 0
De acuerdo Re: JavaScript dentro de un DIV

Código HTML:
<html>
<head>
<script>
function oculta()
{
setTimeout("document.getElementById('contenido').style.display = 'none'",1000);
    
}
     
</script>
<style type="text/css">
#contenido {
  width: 300px;
  height: 200px;
  margin: auto;
  margin-top: 100px;
  background: #2689D1;
  text-align: center;
}
#contenido a {
 padding-top: 50px;
 display: block;
 font-family: "Arial";
 font-size: 30px;
 color: #FFFFFF;
 text-decoration: none;
}
</style>
</head>
<body>


<div id="contenido">
<a href="javascript:oculta()" >::Foros del Web::</a>
</div>  
</body>
</html> 

Espero te sirva !!!