jQuery slider / Posts /

Start the jQuery Slideshow from a particular slide index

104
I want to use jquery slider in home page and jquery slideshow in gallery page. Both has same images. Currently in Jquery slideshow, when you click on the thumbnails on the side, selected slider image shows up.

I want to do the same thing with the jquery slider on the home page. When user clicks a particular thumbnail on jquery slider, it should take to the gallery page and display a larger slider image with respective description on the bottom on jquery slideshow.

Please let me know if this feature is already available within the current functionality. Or does it have to be separately programmed.
Vidya  11 years ago   viewed: 11607    

2 Answers

-2
You can force the jQuery slideshow to start from a particular slide index by calling:
mcThumbnailSlider.display(index);

For example, you can add the following script into your page:
<script> //suppose you get the slide index number from URL parameter, say slide=2, then you can call: //how to get url parameter? //read: http://stackoverflow.com/questions/979975/how-to-get-the-value-from-url-parameter mcThumbnailSlider.display(2); </script>

Note: To use the script above, the thumbnail-slider.js should be at least the version v2013.3.18.

Milo   11 years ago
1

Another option. In the new page, read the target slide index number from the URL, then revise the startSlideIndex (e.g. thumbnailSliderOptions.startSlideIndex = 2; ) before calling the: var mcThumbnailSlider = new ThumbnailSlider(thumbnailSliderOptions);

Milo   9 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: