鼠标悬停时,smooth-div-scroll停止

时间:2012-04-11 13:33:50

标签: jquery html smooth smooth-scrolling

寻找一个简单的滚动权,没什么特别的。我的代码:

<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中,否则似乎工作正常???

1 个答案:

答案 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>

希望这可以像你想的那样工作!