0

我有一个问题,我使用的是简单的 Slider 1.7,我在暂停悬停元素时遇到了问题。暂停悬停有效,但不是我想要的。正如您在页面顶部的示例中看到的那样http://www.graphicvision.ro/projects/forex/index.php,滑块在鼠标悬停时暂停,例如悬停图像或文本,但如果我将它从元素(比如文本)移动到图像元素。即使我在滑块中,它也会播放下一张幻灯片。当悬停在滑块中的任何元素时,我希望它保持暂停。

4

1 回答 1

0

The following piece of code worked perfectly fine for me as I just didnt want to pause the regular way, I wanted to pause the slider and keep the mouse moving within the element without being driven to the next slide. If you need assistance, please feel free to ask.

    if (options.hoverpause && options.auto){
    $('#slider').hover(function(){
            clearTimeout(timeout); 
    },function(){
    animate("next",false);
    });
    }; 
于 2012-04-02T15:18:09.833 回答