As you might imagine, this is a complex script. There are variables whose scope is set in the code in such a way as to not be accessible globally. If the script is edited, this can be overcome and a function can be written to navigate in the global scope via number.
In the example I worked out, I used the demo page of the script and this edited version of coda-slider.1.1.1.js in place of coda-slider.1.1.1.pack.js:
Attachment 1465 (edited)
I was then able to make up a function that keyed off of the existing nav tabs of the demo:
Code:
function test_35a(n){
jQuery(document.getElementById('stripNavL0').parentNode.getElementsByTagName('a')[n]).addClass("current").parent().parent().find("a").not(jQuery(document.getElementById('stripNavL0').parentNode.getElementsByTagName('a')[n])).removeClass("current"); // wow!
var cnt = - (panelWidth*(n-1));
cPanel = n;
location.hash = cPanel;
jQuery(document.getElementById('stripNavL0').parentNode.getElementsByTagName('a')[n]).parent().parent().parent().next().find("div.panelContainer").animate({ left: cnt}, 750, 'expoinout');
}
n is the tab/panel number you want to navigate to. So you could call this function like:
to go to the second panel.
As I say, I only worked this out with the demo page, YMMV.
Bookmarks