画像にいくつかのjQueryエフェクトを使用しています。しかし、[さらに読み込む]ボタンをクリックすると、JQueryの次の画像が機能しなくなります。問題はドムの準備ができています。だから、私は.liveでjQueryコードを使いたいのですが、.liveの使い方がわかりません
助けてください、ありがとう。
1:
var hoverImg = '<div class="hoverimg"></div>';
$(".thumb").each(function(){
$(this).children("div").each(function(){
$(this).find("a").append(hoverImg);
});
});
$(".thumb div").hover(function() {
$(this).find(".hoverimg").animate({ opacity: 'toggle' });
});
$(".thumb").hover(function() {
$(this).find("div").each(function(){
$(this).find(".shadow").fadeOut(500);
});
});
2:
var shadowImg = '<div class="shadow"></div>';
$(".thumb").each(function(){
$(this).children("div").each(function(){
$(this).append(shadowImg);
});
});
3:
var c = '';
var d = '';
$('.view-content div.views-row').each(function(){
c = 0;
d = 0;
var i = 1;
d = $(this).find('.thumbimg').length;
$(this).find('.thumbimg').each(function(){
sayi=i++;
$(this).append('<div class="img_no">0'+sayi+'</div>');
});
});