2012-07-26 68 views

回答

0

我看到你的页面有已经包含了jQuery库,所以它应该是一件容易的事。

$('body').on('click', '#lbImage', function() { //when display image is clicked 
    if ($('#lbNext2_Off').is(':hidden')) //check if it isn't the last image 
     myLytebox.changeContent(myLytebox.activeSlide + 1); //move to next image 
}); 
+0

完美的FabrícioMatté非常感谢你。 – SoFEW 2012-07-27 14:36:55

+0

@SoFEW没问题,请将此标记为[接受的答案](http://meta.stackexchange.com/a/5235/186879)。 '=]' – 2012-07-28 01:40:57