0
我正在使用cycle.all.js jQuery插件(http://jquery.malsup.com/cycle/)。现在它工作正常,但我需要第一个图像比其他所有图像有更短的暂停时间。因此,当用户第一次悬停他鼠标移到幻灯片-DIV周期立即开始,但第一张幻灯片后,它改变了超时650这是我的代码看起来像现在:jQuery cycle.all.js第一张幻灯片暂停
$('div#slideshow').mouseenter(->
$(this).cycle
fx: "fade",
speed: 1
timeout: 650
).mouseleave ->
$(this).cycle 'stop'
只是说明你的CS。 '@'映射到'this'。 –