Post by MZBS » Thu Feb 07, 2013 5:06 am

Hello,

I am trying to convert my related products area in a carousel and I get it easier with this:

http://www.gmarwaha.com/jquery/jcarousellite/?#what

However the previous and next button are always visible and due to is dynamic content I only that appear next and back button when is necessary. If there is not more than X related products there is no sense to display de next and preview arrows.

I have this code that shows next and prev classes to work correctly with the carrousel. How can I hide this if there is less than X articles on the carousel?

Code: Select all

$(function() {
    $(".anyClass").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
		visible: 6,
		scroll: 1
    });
});
Thank you!

New member

Posts

Joined
Tue Jan 17, 2012 1:36 am
Who is online

Users browsing this forum: No registered users and 7 guests