Javascript Image Slider > Posts >

 

Is it possible to start the slider on a particular slide?

Bill Aldridge
9 months ago
Viewed: 1530
9
Useful

Hi, I wonder if it is possible to select a starting slide with this slider. For example say the presentation is Slide1->Slide2->Slide3->...SlideN. I want to initialise the slider so that when it is dispayed it is presnting the show from Slide3.

The scenario is like this. I have a page with many thumbnails. When a visitor clicks a thumbnail image, it will open another page containing a slider that starts sliding from this particular thumbnail.



3 months ago
milo   Edit
5

This solution might be also good. It uses the built-in function:
imageSlider.display(slideIndex, true, true);
Read this post for details:


9 months ago
Milo   Edit
4

Bill, You have two ways to implement this.

You can implement it by server-side coding(such as PHP, ASP.NET) which will select which images you are going to show and build the slider's markup from server side before the page is rendered out.

If your page cannot build the markup from the server side, you can use javascript to build the slider markup after page load, and then call:
imageSlider.reload();
See Slider Built on the Fly for the sample code.


9 months ago
Bill   Edit
0

Yes you are right. I want selecting an image will navigate to another page which will have a slider that starts sliding from the selected image. The current service I am building for is a 'Static Site' so unfortunately a servier side script is not possible. I will take the second approach as you suggested. Thanks for your help!

New Answer