2012-07-26 63 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