Sorry, didn't mean to be coy or challenge you with riddles. I referred to the perma page because it handles the situation you've described with just five lines of code. I thought that would be straight-forward enough to follow, apologies if it wasn't. Here are those five lines:
- var index = 0, hash = window.location.hash;
- if (hash) {
- index = /\d+/.exec(hash)[0];
- index = (parseInt(index) || 1) - 1; // slides are zero-based
- }
Line 1 initializes two variables. As you noted, 'index' is later passed to cycle as the value for the 'startingSlide' option. It is initially set to 0 so that if there is no hash information the slideshow will start with the first slide. Next, the hash is interrogated and a regex is used to extract an integer value. So as charlietfl noted, if your url looks like this:
'index' will be updated to the value of 2 (1 is subtracted) and so the slideshow will start on the third slide (slide indexes are zero-based). So in my example, the assumption is that external links that need to drive a particular slide in the slideshow need to use the url form shown above. There are other ways to do this, but you wanted simple, and this is pretty simple.
I don't see why there would be any issues with SEO.
Re the old nabble thread, that conversation is dated and no longer relevant. It's not necessary to use parseInt on cycle's options anymore.
Cheers!