Desplazamiento de página usando Jquery

i want to add some functionality to my page when it is completely scrolled down. can any one tell is the any way to find whether the page is completely scrolled down using Jquery?

preguntado el 01 de febrero de 12 a las 04:02

Duplicar: stackoverflow.com/questions/2837741/… This should anwser it. -

3 Respuestas

Prueba con esto.

$(window).scroll(function(){
   if(($(document).height() - $(document).scrollTop()) == $(window).height()){
       //Scroll reached at the bottom 
   }
});

Demo

Respondido 01 Feb 12, 08:02

Puntos de ruta de jQuery is the right tool for the job. There are several demos highlighting the event driven model that Waypoints utilizes.

Respondido 01 Feb 12, 09:02

for scroll mapping, u can use this;

$(window).scroll(function() {
   var scrollVal = $(this).scrollTop();
   //console.log(scrollVal);

   if ( scrollVal > 0 && scrollVal < 100 ){
     //code
   }else if ( scrollVal > 100 && scrollVal < 200 ) {
     //code
   }else{ //bigger than 200px
     //code
   }

});

Respondido 10 Jul 12, 17:07

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.