开发者

How to retain the set of images in jquery (jcarousel)

开发者 https://www.devze.com 2023-02-28 23:13 出处:网络
i am using jcarousel to show image as slides. 5 images are shown at a time and next button slides one image to right, there are a total of 9 images.

i am using jcarousel to show image as slides. 5 images are shown at a time and next button slides one image to right, there are a total of 9 images. Each image is a link to its detailed page. but now if click the last image开发者_StackOverflow中文版 to go to its detailed page and then come back to the page(using browser back button) the image slide shows the 1st 5 images. But i have to retain the set of images that was present when i clicked the image. What must be done to do this Thanks in advance


You can set the start position.. See this example.. Carousel with custom start position

While clicking on the image, store the position to a cookie, and on return get the value from cookie and assign to the start option

0

精彩评论

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