this is my first post here, I hope I won't make to many mistakes...
I use the wonderful jquery.cycle plugin for a news slider module on my website. Now I would like to add a pager that looks like this:
01 / 02 / 03 / 04
That means I have to add "dividers" (= "/" a forward slash) after each pager number except the last one. But I can't figure out how i could possibly do that.
This is what I have:
// redefine Cycle's updateActivePagerLink function 
$.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) {
    $(pager)
        .find('a')
        .removeClass('active') 
        .filter('a:eq('+currSlideIndex+')')
        .addClass('active'); 
};
$('div.teaser-news')
    .after('<div class="pager-news"></div>')
    .cycle({ 
        fx:     'scrollRight',
        rev:        1,
        speed:  'slow', 
        timeout: 6000,
        pager:'.pager-news', 
        pagerAnchorBuilder: function(idx, slide) {
            var numSlides = $("div.teaser-news").length;
            if( idx < 10){
                idx += '<a href="#">0' + idx + '</a><span class="divider"> / </span>';
            } else {
                idx += '<a href="#">' + idx + '</a><span class="divider"> / </span>';
            }
            return idx; 
        }
});
Can anybody help me get rid of the last slash? Thanks!
 
     
     
    