0
$('marquee').marquee('pointer').mouseover(function () {
        $(this).trigger('stop');
    }).mouseout(function () {
        $(this).trigger('start');
    }).mousemove(function (event) {
        if ($(this).data('drag') == true) {
            this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
        }
    }).mousedown(function (event) {
        $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
    }).mouseup(function () {
        $(this).data('drag', false);
    });

任何人都知道最好的方法是在 3 秒后停止计时器,暂停 3 秒然后继续?

谢谢!

4

1 回答 1

1

尝试这个:

this.stop();或者this.start()

于 2011-03-28T19:27:20.410 回答