Ver Mensaje Individual
  #10 (permalink)  
Antiguo 07/09/2012, 10:45
Avatar de Dradi7
Dradi7
 
Fecha de Ingreso: junio-2008
Ubicación: Peru - Lima
Mensajes: 1.518
Antigüedad: 15 años, 10 meses
Puntos: 220
Respuesta: Imagen jquery que aparece automaticamente al entrar a una web

podrias usar lo siguiente

Esto va dentro del body de tu html
Código HTML:
Ver original
  1. ​​​​​​​<div id="popup">HOLA</div>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

Código Javascript:
Ver original
  1. $(document)&#8203;.ready(function(){
  2.     var p = $('#popup');
  3.     p.css({
  4.         width: '500px',
  5.         height: '500px',
  6.         backgroundColor: 'red',
  7.         position: 'absolute',
  8.         display: 'none'
  9.     });
  10.  
  11.     // ABRIMOS EL POPUP LUEGO DE CIERTOS SEGUNDOS EN EL CASO 2 SEGUNDOS
  12.     setTimeout(function(){
  13.         var p = $('#popup');
  14.         p.css({
  15.             left: (window.screen.height + $(this).height())/2 + 'px',
  16.             top: (window.screen.width + $(this).width())/2 + 'px',
  17.             display: 'block'
  18.         });
  19.     },2000);
  20. });&#8203;
__________________
La clave de todo triunfador es eliminar todas sus excusas y sus limitaciones