モジュールfancyboxを使用して、モーダルページ(fancybox)にフォトギャラリーを表示しようとしています。
問題は、画像が11回表示されていることですが、その理由はわかりません。私はすでに検索していて、正しい構文を使用しています。
これが私のコードです:
JQUERY
$(".testGatorade[rel=group1]").fancybox({
'speedIn' : 200,
'speedOut' : 200,
'overlayShow' : false,
'modal' : true,
'showCloseButton' : true,
'titleShow' : true,
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + currentIndex + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '</span>';
}
});
HTML
<div id="slider1">
<a class ="testGatorade" href = "images/eagle.jpg" rel="group1" title = "Test de titre">
<img src = "images/eagle.jpg" width = "300" height = "300"/>
</a>
<a class ="testGatorade" href = "images/ring.jpg" rel="group1"></a>
<a class ="testGatorade" href = "images/tarantula.jpg" rel="group1"></a>
</div>
助けてくれてありがとう、
私は4日からそれに取り組んでいます。