我想要一個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. 如何獲取當前顯示的圖像位置?
- 3. 如何獲取顯示在當前圖像的ID viewPager
- 4. 如何在Sharepoint中獲取當前用戶顯示圖像?
- 5. 如何顯示當前值?
- 6. 如何在滑塊上顯示圖像Swift中的當前值?
- 7. 如何獲取動畫GIF圖像的當前圖像?
- 8. Java - 如何獲取圖像以顯示?
- 9. win32:獲取顯示器的當前DEVMODE
- 10. 獲取正在顯示的當前JEditorPane
- 11. 如何獲取jCarouselLite中的可見項?
- 12. 獲取當前圖像的路徑 - jQuery
- 13. 如何獲取UISlider的當前值
- 14. 如何獲取RadGrid列的當前值
- 15. 移動圖像,顯示值並保存當前值
- 16. 如何獲取當前顯示的tableView的indexPath.row?
- 17. 如何顯示當前額定值?
- 18. 如何讓p:selectOneMenu顯示當前值?
- 19. 如何顯示不在當前目錄中的圖像
- 20. 如何獲得當前顯示的圖像的日期谷歌地球API
- 21. 顯示當前值/ jQuery的
- 22. 獲取訪問當前沒有顯示
- 23. 獲取當前顯示模式
- 24. viewflipper獲取當前顯示子ID
- 25. 獲取查看傳呼機上顯示的圖像的當前ID
- 26. 如何獲取當前顯示的佈局
- 27. 如何在viewpager中獲取當前顯示的片段
- 28. 如何獲取當前顯示的關卡列表級別
- 29. 如何獲取當前顯示的UIViewController不在AppDelegate中?
- 30. 如何獲取AdapterView中當前顯示的項目?