i started using colorbox project , want show next , previous images thumbs on left , right hand side instead of arrows.
is possible next , previous through group , display them backgrounds in div?
pseudo:
$("a.gallery").colorbox({ $("#nextbtn").css("background-image":$(this).next-image)); });
a bit sloppy, think want, thank in advance!
what trying wrong. if want add css can either passing object (between {
, }
) or single parameters divided comma.
either:
$("a.gallery").colorbox({ $("#nextbtn").css({"background-image":$(this).next-image}); });
or
$("a.gallery").colorbox({ $("#nextbtn").css("background-image",$(this).next-image); });
also $(this).next-image
doesn't make sense. should like:
$(this).next('img');
or that.
Comments
Post a Comment