0

Whats the problem with this script, it doesnt work. I've place the api's correctly

function Slider() {
  $(".slider #1").show("fade",500);
  $(".slider #1").delay(5500).hide("slide",{direction:'left'},500);

  var sc = $(".slider img").size();
  var count = 2;

  setInterval(function(){
    $(".slider #" +count).show("slide",{direction: 'right'}, 500);
    $(".slider #"+count).delay(5500).hide("slide",{direction:'left'}, 500);

    if(count == sc) {
      count = 1;
    }
        else {
      count = count + 1;
    }
  }.6500);
}
davegson
  • 8,205
  • 4
  • 51
  • 71

1 Answers1

0

There is a typo: replace }.6500); with }, 6500);

kol
  • 27,881
  • 12
  • 83
  • 120