











var carousel1 = new MooCarousel('carousel1_wrapper','carousel1_items_container','carousel1_moveleft','carousel1_moveright',c_ns,c_sss, true); //ns= number of slides , sss = slide step size
And ofcourse you can change the look-n-feel of these paging achors as you please by modifying their CSS.
.carousel_paging {text-align:right; margin:5px 10px 0 0;}
.carousel_paging .current, .carousel_paging .page{ outline:none; width:15px; height:15px; line-height:15px; text-align:center; display:block; float:left; background:#D8D8EB; margin:0 1px 0 0; text-decoration:none;}
.carousel_paging a:hover, .carousel_paging .current{background:#4D4D9B; color:#ffffff;}
Well! there is a small issue though, The paging anchors if set, then it will get generated always after the Carousel component. I wanted to make it dynamic as well, but then just to keep the Script for blowing out of proportions, I decided to skip it.
But you know a little Javascript , you could easily modify the paging generation code in the MooCarousel class to please your needs. var carousel1 = new MooCarousel('carousel1_wrapper','carousel1_items_container','carousel1_moveleft','carousel1_moveright',c_ns,c_sss,true);
CSS
.carousel_container_l, .carousel_container_r{margin:50px 0 0 0 ; position: relative;width: 23px;height:20px; float:left; cursor:pointer; }
.carousel_container_r{background-position: 0 -38px; }
.carousel_container_l{background-position: 0 -58px; }
var carousel1 = new MooCarousel('carousel1_wrapper','carousel1_items_container','carousel1_moveleft','carousel1_moveright', c_ns,c_sss, true);
c_ns= number of slides , c_sss = slide step size
Also, in my example1 I have calcuted the slide step size, based on logic where , I know number of items , width on each item and the margins that have given after each item in my CSS.
/*For Carousal 1 */
var c1_w = 92; // Carousal Item Width
var c1_n = 10; // Total Number of Comparision Carousal Items
var c1_pp = 4 // Number of Comparision Carousal Items perpage
var c1_marginFactor = 51;
var c1_sss = c1_w * c1_pp ; //sss = slide step size
var c1_ns = parseInt(((c1_w * c1_n)/c1_sss) + .5); //ns= number of slides
c1_sss += c1_marginFactor ; //sss = slide step size , 51 for margins
Requirements: Mootools 1.2
Download Source Here