Passing an array of 'imaginary' links to Shadowbox
First up- Shadowbox is brilliant and I have been clamouring to incorporate it into one of my projects, but have hit a nasty snag.
The problem is I'm executing Shadowbox from a mootools carousel which is adding/removing links on the fly, and Shadowbox can only see those which are on the current slide - that means it will only have 1 of 5 in the gallery, instead of 1 of 15 and you cant cycle between pictures across slides.
Slimbox, the script I was using until now had an undocumented feature where you could pass an array of links manually like this:
, and then launch each one from an onclick event in the href, referencing it's index in the array (onclick="showImage(3)"). This way you could force it to open images which werent currently registernig in the DOM. Does that make sense?
So, I was hoping Shadowbox could do something similar. Obviously it would be done using the skipSetup method, but it seems that Shadowbox is always looking for links in the DOM and will error if it cant find them.
Any suggestions would be greatly appreciated - I'd really like to use Shadowbox and only Shadowbox from now on!