javascript - adding callback on colorbox to skip the first image of slideshow -
weird requirement, want skip first slide on slideshow (made colorbox). basically, want first slide doesn't show , slideshow opens second slide.
the way can think of achieving through doing "go next" on "onload" function not sure how make go next first image.
this have done:-
$(".element").colorbox({ onload:function(){ $.colorbox.next(); } });
unfortunately, "next()" not working. not sure how achieve that. idea how achieve through or may other way?
thanks.
disclaimer: rob's idea $.remove
element more idea below if heart set on not mucking cms' dom...
i'm not sure may scope thing:
you try binding event dom:
$(document).on('cbox_complete', function(){ $.colorbox.next(); });
(i try complete event first , experiment there)
Comments
Post a Comment