1. Without running Shadowbox.init(), Shadowbox will not work
2. Shadowbox works on A and AREA tags; without using these tags you do not have 'gallery' capability
3. Running Shadowbox.setup() - either as part of init(), or in its own right - would cache your shadowbox media, and (a) enable open() to be called with just the trigger element, and (b) enable the 'gallery' capability.
If you could expand your example somewhat, it would help in determining exactly what it is you are trying to achieve?
Combine literacy with curiosity and a whole world of information opens up to you
I'm having the same problem. I know I can open a gallery by adding something like [gallery] to the rel tag. What I - and I guess the thread starter also - want to achieve is to open a gallery by adding some link to an object that is not part of the gallery like
I have already created the correct links with rel tags and added style="display: none" to make them accessable in the DOM.
If the gallery elements have already been set up in Shadowbox - which you imply that they have - then calling Shadowbox.open(Element) on a triggering link Element should open the relevant media in gallery mode.