0
我想使用jScroll插件,以便在滚动到页面底部时加载另一个网页。我已经按照说明设置了它,并且可以看到插件生成了一些代码,但它没有按预期工作。任何帮助在这里将非常感激。如何使用jScroll插件?
HTML:
<script src="../js/jquery.jscroll.min.js"></script>
<div class="wrapper scroll">
<!-- Start module A - Header -->
<div class="a">
<div class="module__container header__mobile">
<div class="work__flex--item">
<div class="header__mobile--img full work_overlay">
</div>
<div class="overlay__text">
<h3 class="overlay__text--header" style="margin-bottom: 6px !important;">AMUR</h3>
<p class="h5 overlay__text--sub" style="margin-bottom: 15px !important; marg
in-top: 0px; font-weight: normal;">Materials making a difference.</p>
</div>
</div>
</div>
<div class="module__container header__other">
<div class="header__text--container">
<h2 style="color: white; margin-top: 35px !important; margin-bottom: 5px !important;">AMUR</h2> <!-- Title -->
<h5 style="color: white; font-weight: normal; margin-top: 0px !important;">Materials making a difference.</h5> <!-- Subtitle -->
</div>
<div class="header__image--overlap">
<img class="img__full" src="../css/images/work-template/amur/amur_overlay.png" style="height: auto !important;"> <!-- Path to header image file -->
</div>
</div>
</div>
<!-- End module A - Header -->
<a href="gohrvst.com/work/bench.html">next page</a>
</div>
的jQuery:
<script>
$('.scroll').jscroll();
$('.infinite-scroll').jscroll({
autoTrigger: true
});
</script>
你的先生,是个天才。非常感谢帮忙。干杯。 –