0
jQueryを使用してスライドバナーを作成しましたが、.mouseover(function(){ clearInterval() }
を使用しようとしたときに、スライダーバナーがスライドしなくなります。jQueryスライディングバナーmouseover&clearIntervalが機能しない
$("#wrapper-banner > div:gt(0)").hide();
var timer=setInterval(function() {
$('#wrapper-banner > div:first')
.fadeOut(3000)
.next()
.fadeIn(3000)
.end()
.appendTo('#wrapper-banner');
}, 4000);
("#wrapper-banner").mouseover(function(){
clearInterval(timer);
});
( "#wrapper-banner")には$がありませんが、あなたのコードにこのような確認がありますか? –
ありがとう、あなた!これは私が昨日作った別の低レベルのエラーです! –