uberzone
uberzone

Reputation: 3

Using a jQuery image slider to a multiple pages

I have a image slider. It´s a simple one and has been done with js/jQuery. When i open the homepage, it starts from image1 and it goes through all of them and then starts up the loop again. The thing i don´t know how to accomplish is: Is there a way that i can separate the slider from the .html page? The point is - can i make the slider to remember its current image and when i open another .html page to start from the current one in the previous page? For example i have 30 images loaded in the slider. The current one is image12 -> i load another .html page in the browser and the slider starts from image12, not from image1

Upvotes: 0

Views: 437

Answers (1)

Steen
Steen

Reputation: 2877

  1. Rewrite to handle a setting value like startSlideShowFromImageNo
  2. Set/Update a cookie on each slide change
  3. Read that cookie on init of slideshow

Upvotes: 1

Related Questions