开发者

Is it possible to start a colorbox based on a specified index?

开发者 https://www.devze.com 2023-01-09 06:35 出处:网络
I would like to be able to pass in the index of the image 开发者_如何学CI want colorbox to start on when it opens.So if the user clicks on image 8 of 12 I still want the group to start in the lightbox

I would like to be able to pass in the index of the image 开发者_如何学CI want colorbox to start on when it opens. So if the user clicks on image 8 of 12 I still want the group to start in the lightbox on image 3. Is this possible?


I found a way to do it is to fire up colorbox on a list of images then call

$('selector').eq(indexhere).click();

Thank's for taking a look hookedonwinter.

0

精彩评论

暂无评论...
验证码 换一张
取 消