Hi guys,
I've got a single page which has multiple instances of a thumbnail 'cycle' gallery. Problem is though, the Paging system gets all messed up (it's adding all in one or something). It's probably something very simple for you guys, but this is what I've got:
$(function(){
$('div.gallery')
.before('<div class="imgSelect">')
.each(function() {
$('.imgWrap ul').cycle({
fx: 'fade',
speed: 'fast',
timeout: 0,
pager: '.imgSelect'
});
});
});
HTML:
<div class="imgWrap">
<div class="gallery">
<ul>
<li><img src="images/travel1.jpg" alt="" /></li>
<li><img src="images/travel2.jpg" alt="" /></li>
<li><img src="images/travel3.jpg" alt="" /></li>
</ul>
</div>
</div>
I'm basically trying to say, for each div called '.gallery', add a Pager div (.imgSelect) before it - but all these pagers should count only the images within that gallery.
Any help would be much appreciated, Cheers.