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 に答える