When I add a parameter to the function I want to call from the onChange option, it is applied to the entire gallery directly after document loads and not after each shadowbox iteration. Is that the way it is suppose to work? I thought it would apply to each element in the gallery after the "next" button is selected.
What I get is 3 alert boxes (displaying the correct parameters) one after another as soon as the page loads but before the shadowbox window is ever initiated by a "click".
Is there any further documentation around or examples of how the onChange function is used?
I say might because you are extremely limited in what you can put into the onChange function when used this way, due to the way Shadowbox splits out the rel attribute to determine the properties (splits on semi-colon).
You would be better off simply declaring a generic onChange callback and getting the 1, 2 or 3 from the text of the link, say.
Combine literacy with curiosity and a whole world of information opens up to you