Click here to Skip to main content
15,848,391 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi
I write jquery slider and it works fine in all browsers except IE
would somebody pleaaaaasssse help me on this?
here is my js code:
C#
$(document).ready(function () {
    //$(".impLeftNews:nth-child(odd)").css("background-color", "silver");
var counter = 0;
var slideCount = $(".slides>li").length;
var sliderTimer;
var newscounter = 0;
var newsSlideCount = $(".NewsSlide>li").length;
var newsSliderTimer;

$(".slides>li").each(function () {
    //debugger;
    counter += 1;
    $(this).attr("id", "slide" + counter);
});

function hideAllSlides() {
    $(".slides>li").css("display", 'none');
}

function resetTimer() {
    clearInterval(sliderTimer);
    sliderTimer = setInterval(function () {
        //debugger;
        counter += 1;
        if (counter > slideCount)
            counter = 1;
        hideAllSlides();
        $(".slides #slide" + counter).fadeIn();
        }, 8000);

}

hideAllSlides();
counter = 1;
$(".slides li:eq(1)").show();
resetTimer();

});



It's very important
please help me on this
you can see the code at http://test.bidaran.ir
Posted
Updated 9-May-15 20:43pm
v3
Comments
Kornfeld Eliyahu Peter 10-May-15 2:46am    
Use your built in debugger - in all browsers you have some errors about string literal and jQuery...
ZurdoDev 10-May-15 12:16pm    
What's the error? What doesn't work?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900