Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/08/2011, 04:43
Avatar de Batan
Batan
 
Fecha de Ingreso: septiembre-2010
Ubicación: Madrid
Mensajes: 408
Antigüedad: 13 años, 7 meses
Puntos: 63
Respuesta: poner banner inicial como los periodicos ej. elmundo.es

Buenas

Un ejemplo
Cita:
<!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>
<style>
#banner{
position: fixed;
top: 20px;
left: 200px;
width: 400px;
height: 400px;
display: block;
}
</style>
<script>
function cerrarBanner(){
document.getElementById('banner').style.display = "none";
}
</script>
</head>
<body>
</body>
<div id="banner"><img src="http://www.google.es/images/srpr/logo3w.png" alt="imagen de google" /><a href="javascript:void(cerrarBanner())" style="position: relative; top: 0px; float: right;">cerrar</a></div>
</body>
</html>
Consiste en crear una capa en tu index y con el banner directamente posicionarla fija, con la propiedad position: fixed.
Y crear un javascript para cerrar el banner, usando la propiedad display.
Saludos