How to select a particular slide with an outside call like
< a href="slider.html?Page=5">
I tried using <body onload='mydisplay();'>
function mydisplay(){
var str = location.search;
var n =str.indexOf('=')+1;
var indx=str.substring(n);
imageSlider.displaySlide(indx, true, true);
}
This often produce errors and messes up the sequence
Thank you for your time - alberto
You are almost there. It will work if the indx is an integer instead of string. You also need to make sure the indx is less than the total number of the slides as it is zero-based:
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;
If your question is related to the Javascript Image Slider, click:
Ask new question: Javascript Image SliderOtherwise navigate to one of the following forum categories, and post your question there.
##