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