Ver Mensaje Individual
  #14 (permalink)  
Antiguo 28/07/2011, 07:42
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 14 años, 7 meses
Puntos: 310
Respuesta: div que baja con el scroll

A ver:
Código Javascript:
Ver original
  1. self.onscroll = function(){
  2.  var top = self.pageYOffset || document.body.scrollTop;
  3.  var visiible = window.innerHeight;
  4.  return top > banner.style.height - visible && (banner.style.position = 'fixed');
  5. }
Saludos (:
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red