treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[solved]need help - small problem with jquery cycle on ie6 !

  • hello there,

    i've small problem with jquery-cycle and ie6
    i've try a few days but i can't fix this,

    here is the demo of my jquery cycle: http://dmtheme.com/jquery-cycle-demo/

    can someone help me ?
    thanks
  • You have an extra comma in your script.
    			//easing: 'bounceout', 
    delay: 6000,
    pagerAnchorBuilder: pagerFactory,
    });

    Since pagerAnchorBuilder isn't followed by anything, it shouldn't have a comma following the value.
    Try this:
    $(document).ready(function() {
    /* Jquery Cycle */
    $(function() {
    $('#slideshow').cycle({
    fx: 'scrollHorz',
    speed: 800,
    timeout: 6000,
    pause: true,
    prev: '#show_prev',
    next: '#show_next',
    pager: '#nav',
    //easing: 'bounceout',
    delay: 6000,
    pagerAnchorBuilder: pagerFactory
    });

    function pagerFactory(idx, slide) {
    var s = idx > 5 ? ' style=\"display:none\"' : '';
    return '<li'+s+'><a href=\"#\">'+(idx+1)+'</a></li>';
    };
    });
    });
  • thank you

    i've update my code (both css & js + easing) at
    http://dmtheme.com/jquery-cycle-demo/

    it work perfect on all web browser now (ie6 included)

    thanks you many time :)