Hello ... I've completed a photo gallery for a client that includes 4 different photo albums that all run the colorbox plugin to generate slide shows (
http://www.crucean.com/gallery.php).
I thought the four albums stacked on top of each other looked a little to bulky ... I wanted to make a little javascript player that would advance the four photo albums into a div (id="albums") depending on which button is clicked.
Here's what I have ... it works perfectly ... except now the colorbox plugin doesn't work (
http://www.crucean.com/galleryNew.php).
I think this is because the content that I am calling colorbox on, is generated dynamically by the JS code variables (albumCont1, albumCont2, albumCont3 and albumCont4) ... yet, it doesn't seem like that should matter ... HTML is HTML, right? Shouldn't matter how it was generated?
The other possible cause of this may just be the path that colorbox uses to search for <a> tags that have the rel="album#" tags ... right now it is set to:
$("a[rel='album1']").colorbox({transition:"fade"});
$("a[rel='album2']").colorbox({transition:"fade"});
$("a[rel='album3']").colorbox({transition:"fade"});
$("a[rel='album4']").colorbox({transition:"fade"});
Any ideas on how to call my plugin on this dynamically generated content?
Thanks
| sc