Bing image search paging - infinite scroll

后端 未结 4 1671
南笙
南笙 2020-12-28 23:41

When you search for images on the Bing search engine, the result is displayed like this:

http://www.bing.com/images/search?q=stack+overflow

Notice how you ca

相关标签:
4条回答
  • 2020-12-29 00:27

    After some searching and reading I found this very good site:

    http://www.infinite-scroll.com/

    It includes downloadable WordPress and jQuery -plugins and also explains pros/cons of using "Infinite scroll/autopagerize/unpaginate/endless pages"

    Sample pseudo/jQuery code to load more data when user has scrolled all the way to the bottom:

    $(window).scroll(function(){
            if  ($(window).scrollTop() == $(document).height() - $(window).height()){
               loadMoreRows();
            }
    });
    
    0 讨论(0)
  • 2020-12-29 00:33

    Today I found a jQuery plugin that does the same scroll as Bing/Live Search:

    http://blog.yctin.com/archives/jquery-plugins-ajaxscroll/

    It was designed to remove the need for Next/Previous buttons.

    0 讨论(0)
  • 2020-12-29 00:40

    Here's an article about that technology :

    Eliminate paging results by using JavaScript (ala DZone) : Using Javascript, prototype and PHP.

    0 讨论(0)
  • 2020-12-29 00:48

    This feature is often called "infinite scrolling". Searching for infinite scroll javascript turns up a number of articles/posts on how to do this. Some of the more interesting ones:

    • Implementing infinite scrolling with jQuery
    • infinite-scroll.com
    • Continuous scrolling pattern using JavaScript and ASP.NET
    0 讨论(0)
提交回复
热议问题