Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kswedberg/888482 to your computer and use it in GitHub Desktop.
Save kswedberg/888482 to your computer and use it in GitHub Desktop.
<script>
$(window).load(function() {
$(".carousel").jCarouselLite({
btnNext: function() {
return $(this).find(".next-gallery");
},
btnPrev: function() {
return $(this).find(".previous-gallery");
},
visible: 1
});
});
</script>
<div id="c-1" class='carousel'>
<ul>
<li>
<a href="#">
<img src="foto-op.jpg" />
</a>
</li>
<li>
<a href="#">
<img src="59453-10100255219345305.jpg" />
</a>
</li>
</ul>
<a href="#" class="previous-gallery">Previous Image</a>
<a href="#" class="next-gallery">Next Image</a>
</div>
<div id="c-2" class='carousel'>
<ul>
<li>
<a href="#">
<img src="59453.jpg" />
</a>
</li>
<li>
<a href="#">
<img src="59453.jpg" />
</a>
</li>
</ul>
<a href="#" class="previous-gallery">Previous Image</a>
<a href="#" class="next-gallery">Next Image</a>
</div>
@megamosk
Copy link

megamosk commented Feb 7, 2015

Can't figure it out :(
http://jsfiddle.net/ybkmhkna/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment