我想要一個jCarouselLite圖庫作爲滾動縮略圖,並通過某種方式引用它當前顯示的圖像(然後通過數組或類似圖像選擇第一個圖像)在其旁邊呈現較大的圖像。我會如何處理這個問題?
的當前設置 -
$('.carousel').jCarouselLite({
jCarouselLite:如何獲取當前顯示圖像的值?
btnNext: '.next',
btnPrev: '.previous',
auto: true,
timeout: 500,
speed: 500,
vertical: true,
visible: 3,
circular: true,
beforeStart: function(a) {
//alert("Before animation starts:" + a);
},
afterEnd: function(a) {
//fetch first image of the currently displayed images
//set html content of .display div to be that of the new image
}
});
0
A
回答
0
這可能幫助 - Showing the position in jCarouselLite
您可以使用內置的afterEnd和beforeStart功能向你展示什麼是當前顯示給用戶。
$(".ccvi-carousel").jCarouselLite({
btnNext: ".next",
btnPrev: ".prev",
speed: 800,
//auto: 2000,
afterEnd: function(a) {
//look into the object and find the IDs of the list items
left = $(a[0]).attr("id");
mid = $(a[1]).attr("id");
right = $(a[2]).attr("id");
//Do something
$('li#' + left + ' .cf-img').fadeIn();
//alert("Left:" + left + "Middle:" + mid + "Right:" + right + "");
}
});
相關問題
- 1. 獲取jCarouselLite的當前索引圖像/頁面
- 2. 如何獲取顯示在當前圖像的ID viewPager
- 3. 如何獲取當前顯示的圖像位置?
- 4. 如何在Sharepoint中獲取當前用戶顯示圖像?
- 5. 如何在滑塊上顯示圖像Swift中的當前值?
- 6. win32:獲取顯示器的當前DEVMODE
- 7. 如何獲取jCarouselLite中的可見項?
- 8. 獲取當前圖像的路徑 - jQuery
- 9. 如何獲取UISlider的當前值
- 10. 如何顯示當前額定值?
- 11. 如何獲取當前顯示的tableView的indexPath.row?
- 12. 如何顯示不在當前目錄中的圖像
- 13. 獲取訪問當前沒有顯示
- 14. 如何獲得當前顯示的圖像的日期谷歌地球API
- 15. 如何獲取當前顯示的佈局
- 16. 如何在viewpager中獲取當前顯示的片段
- 17. 如何獲取當前日期的數據只顯示
- 18. 如何獲取當前顯示的關卡列表級別
- 19. 獲取當前主屏幕圖像
- 20. 如何防止當前顯示的最後一個圖像出現圖像?
- 21. 直接顯示圖 - 如何獲得當前的fps?
- 22. 如何獲取WPF窗口的當前狀態到圖像中?
- 23. 如何在javascript中獲取當前圖像的編號
- 24. 如何在jQuery中獲取圖像的當前位置?
- 25. 如何獲取當前GMT值?
- 26. 獲取RibbonSpinEditItem的當前值
- 27. 如何獲取MVC 2中顯示的位圖圖像
- 28. 如何獲取當前在Google地圖上顯示的街道位置?
- 29. 如何在圖像滑塊javascript中獲取當前圖像的引用?
- 30. AppleScript如何獲取當前顯示分辨率?