2012-03-13 33 views

回答

0

是的,如果你使用jQuery的版本是指這http://nivo.dev7studios.com/support/jquery-plugin-usage/

你想設置controlNav: true那麼你會得到的頁面選擇像他們的頁面上的演示。

如果你只有想給他們一個選項返回到幻燈片0,而不是單獨挑選每一個,那麼你將不得不修改滑塊,因爲沒有默認行爲支持。

+0

我通過暫停,並再次啓動解決。謝謝。 – Darius 2012-03-14 02:18:28

+0

您提供的鏈接已被刪除。你能爲此顯示代碼嗎? @bbedward – Illaya 2014-06-25 13:24:56

0

您不必修改滑塊......

var idx = 0; // '0' is the first slide 

    // set nivo's currentSlide var to one before the idx value 
    $('#slider').data('nivo:vars').currentSlide = idx - 1; 

    // trigger a nextNav click 
    $("#slider a.nivo-nextNav").trigger('click'); // trigger a click on the nextNav