scroll事件

 $(window).scroll(function(){
        var clientHeight = $(window).height(),
        scrollTop = $(window).scrollTop(),
        scrollHeight = $(document).height();
        if(clientHeight + scrollTop >=  scrollHeight ){
            waterfall.addBlocks();
        }
    })

 

posted @ 2012-03-08 19:15  沫鱼  阅读(428)  评论(0编辑  收藏  举报