寻找一个简单的滚动权,没什么特别的。我的代码:
<script type="text/javascript">
// Initialize the plugin with no custom options
$(document).ready(function () {
// None of the options are set
$("div#makeMeScrollable").smoothDivScroll({
mousewheelScrolling: false,
hotSpotScrolling: false,
autoScrollingMode: "onstart"
});
});
</script>
当鼠标悬停在div的右边缘时,滚动停止。发生在Chrome和IE中,否则似乎工作正常???
答案 0 :(得分:0)
将代码更改为:
<script type="text/javascript">
// Initialize the plugin with no custom options
$(document).ready(function () {
// None of the options are set
$("div#makeMeScrollable").smoothDivScroll({
autoScrollDirection: "endlessloopright",
autoScrollingMode: "always"
});
});
</script>
希望这可以像你想的那样工作!