1

My problem today is that the running ticker only scrolls once. The "makeMeScrollable" contains the text that should be scrolling infinitely but literally only scrolls until the end of the text. Any idea what might be causing this? Firebug shows no issues

Here's my code:

This is in the head:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script src="js/jquery-ui-1.8.23.custom.min.js"></script>
<script src="js/jquery.mousewheel.min.js"></script>
<script src="js/jquery.smoothdivscroll-1.3-min.js"></script>

<script type="text/javascript">
    // Initialize the plugin with no custom options
    $(document).ready(function () {
        // None of the options are set
        $("#makeMeScrollable").smoothDivScroll({
            autoScrollingMode: "always",
            autoScrollingDirection: "endlessLoopRight",
            autoScrollingStep: 1,
            autoScrollingInterval: 15
        });

        $("#makeMeScrollable").bind("mouseover", function () {
            $("#makeMeScrollable").smoothDivScroll("stopAutoScrolling");
        });

        $("#makeMeScrollable").bind("mouseout", function () {
            $("#makeMeScrollable").smoothDivScroll("startAutoScrolling");
        });
    });
</script>

This is in the body:

<div id="makeMeScrollable">
    <p>this contains very long text</p>
</div>
4

1 回答 1

1

我已经弄清楚了,或者更具体地说,我做了一些更好的阅读。事实证明,如果每个不同的元素都没有滚动条那么长,它们将没有足够的时间换出,因此滚动条将停止。

我刚刚增加了每个文本的长度,现在它工作得很好。

于 2013-08-07T06:58:36.343 回答