我访问了 Thomas Kahn 的实验室页面http://www.smoothdivscroll.com/lab.html以了解如何构建 html。在此实验室页面上,您可以做出很多选择。但是有没有一种简单的方法可以在代码中获得这些选择?或者我应该使用实验室页面的源代码来查找它?谁能给我建议?
吉斯
我访问了 Thomas Kahn 的实验室页面http://www.smoothdivscroll.com/lab.html以了解如何构建 html。在此实验室页面上,您可以做出很多选择。但是有没有一种简单的方法可以在代码中获得这些选择?或者我应该使用实验室页面的源代码来查找它?谁能给我建议?
吉斯
首先从这里下载包含示例的压缩代码
您可以在初始化插件时更改所需的选项。它们都在这里列出和解释
初始化页面上的脚本时更改选项/设置,如下所示:
<script type="text/javascript">
$(document).ready(function () {
$("div#makeMeScrollable").smoothDivScroll({
// Copy and paste your settings in here for example..
hotSpotScrolling: false,
visibleHotSpotBackgrounds: "always"
});
});
</script>