我正在使用fancybox jquery.fancybox-1.3.0.pack.js,并希望在我的网页中使用groups_elements时禁用自动幻灯片显示。 Grouped照片的彼此靠近工作正常,但当我堆叠它们我不想自动幻灯片,怎么办? 这是代码:
<script type="text/javascript">
$(document).ready(function() {
$("a[rel=group13]").fancybox({
'autoPlay' : false,
'titleShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
}
});
});
</script>
<a name="Burstner Solano - T700 I"></a>
<table width="990" cellpadding="22" cellspacing="0">
<tr>
<th>
<a class="grouped_elements" rel="group13" href="/img/solano700/Image00.jpg"><img src="/img/solano700/Image00.jpg" width="400"></a>
<a class="grouped_elements" rel="group13" href="/img/solano700/Image01.jpg"><img src="/img/solano700/thumbs/Image01.jpg" width="50" height="33"></a>
<a class="grouped_elements" rel="group13" href="/img/solano700/Image04.jpg"><img src="/img/solano700/thumbs/Image04.jpg" width="50" height="33"></a>
</th>
</tr>
<script type="text/javascript">
$("a.grouped_elements").fancybox();
</script>
</table>