3

我正在使用文档中的这个例子:

api_images = ['images/fullscreen/image1.jpg','images/fullscreen/image2.jpg','images/fullscreen/image3.jpg'];
api_titles = ['Title 1','Title 2','Title 3'];
api_descriptions = ['Description 1','Description 2','Description 3']
$.prettyPhoto.open(api_images,api_titles,api_descriptions);

例如,当prettyphoto 打开时,如何将数组中的第2 个图像作为起点,这样它也可以从该点向后退?(我可以把它放在数组的第一位,但后来我混合了我的内容)

4

1 回答 1

4

虽然没有记录,但它在 API 中可用,如下所示:

$.prettyPhoto.changePage(3) //for the 4th image (zero based)

打开集合后立即调用它。

于 2012-08-29T20:12:48.620 回答