I'm using jQuery colorbox in Evo 1.0.5 to "view more photos" in a lightbox from a page that initially displays a single photo in a DIV. Two problems (assume very little skill with jQuery on my part):
1) There's a clash with Quick Manager, which also uses colorbox. QM seems to be using the same jQuery main file as my script, but its own copy of colorbox in its plugin folders. Is there a simple fix for this?
2) As it stands, I generate a list of links to the picture files relevant to the current page, with the REL attribute telling jQuery what set to create the lightbox for. The first link has an IMG tag as its link text, and links to the second picture in the set. So far, so good - the lightbox displays the set, starting with the next photo and ending with the one shown initially.
I want to add a "View more photos" text link below the initial clickable picture, but if I make it a hyperlink to photo 2 with the right REL attribute, I now have an extra copy of photo 2 in the set. Without the REL, I can't get the others in the set. How do I make the text link act as an alternative to clicking on the picture to see more without adding an unwanted duplicate?
<script>
$(document).ready(function(){
$("a[rel='events'],a[rel='weddings']").colorbox({opacity:0.6,overlayClose:false,current:"{current}/{total}"});
});
</script>
<article id="photo">
<a href="assets/images/_weddings/wedding_flowers_2.jpg" rel="weddings" title=""><img class="splashPic" src="assets/images/wedding_flowers_1.jpg" alt="*" /></a>
<a href="assets/images/_weddings/wedding_flowers_3.jpg" rel="weddings" title="Hooray! Hooray!"></a>
<a href="assets/images/_weddings/wedding_flowers_4.jpg" rel="weddings" title=""></a>
<a href="assets/images/_weddings/wedding_flowers_1.jpg" rel="weddings" title="My Special Day"></a>
<!-- No good:
<p id="photoLink" style="clear:both;"><a rel="weddings" href="assets/images/_weddings/wedding_flowers_2.jpg">View more photos </a></p>
-->
<!-- Lame substitute: -->
<p id="photoLink">Click on picture to view more photos</p>
</article>
??? KP