Hi,
I am trying to create a gallery where the thumb link reveals a hidden inline div (using jquery.colorbox) to show the full image along with a caption, date, story, etc.. What I came up with only succeeds in opening the modal window with all of the images and all of the content loaded up. Can someone help or offer some ideas of how I could have each thumb only show its associated image and data ?
The code I was trying is this :
<div class='bwbps_image'>
<a href="#sharePhotos" class="userThumb">[thumb_image]</a>
</div> <!-- // end thumb -->
<div style="display:none">
<div class="fullStory">
<div class="userFull">
[image]
</div>
<div class="userPhotoCaption">[caption]</div>
<div class="author">[user_name]</div>
<div class="userPhotoDate">[date_added]</div>
<div class="theUserSiteStory">[story]</div>
</div>
</div> <!-- // end full-sized image and story-->
I think the problem is the colorbox code only knows to reveal the .fullStory div and can not isolate which one to show.
$(".userThumb").colorbox({inline:true, href:".fullStory"});
Maybe I could create an integer for the div id so that it only opened that specific block?
Bleh.. there has to be a better way. Any ideas?
not resolved