0
我正在使用jquery ias进行无限滚动+同位素。 加载内容时,所有作品加载第2页,但它停止加载更多页面。 here is the page。我正在尝试一切,但没有成功。 任何想法来解决这个问题?jquery ias无限滚动停止在第2页
这是我使用
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"
type="text/javascript"></script>
<script src="./js/isotope.min.js" type="text/javascript"></script>
<script src="./js/jquery-ias.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
var $container = $('#content');
$container.isotope({
itemSelector: '.afo',
});
});
jQuery.ias({
container : '#content',
item: '.afo',
pagination: '.nav',
next: '#nextpage',
loader: '<img src="./images/loader.gif"/>',
triggerPageThreshold: 5,
onRenderComplete: function(items) {
var $newElems = jQuery(items).css({ opacity: 0 });
$newElems.imagesLoaded(function(){
// show elems now they're ready
$newElems.animate({ opacity: 1 });
jQuery("#content").isotope('appended', $newElems);
});
}
});
</script>
感谢
你解决了这个问题吗?如果是这样,如果你愿意与我们所有人分享答案,那将是非常好的! :) – Manuel