jquery - Get URL of Image dot navigation represents in Owl Carousel -



jquery - Get URL of Image dot navigation represents in Owl Carousel -

jquery noob, bare me plz :)

trying set thumbnails owl carousel built in shopify theme. found solution own, require much tempering shopify theme.

my thought image url dot navigation represent , set background "dot".

here think going like

$(".owl-page").each(function(){ var newbg = (here i'm stuck) $(this).css('background-image','url(' + newbg + ')'); });

can help one?

try solution.

$(".owl-page").each(function(){ var newbg = $('.owl-item').eq($(this).data('owl-page')).find('img').attr('src') // followed code. newbg have image url. });

jquery css owl-carousel

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -