我的jquery滑块在IE上不起作用? [英] my jquery slider does not work on IE?

查看:45
本文介绍了我的jquery滑块在IE上不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我写了jquery滑块,它在所有浏览器中工作正常,除了IE

有人pleaaaaasssse帮我这个吗?

这里是我的js代码:

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:

$(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();

});







非常重要

请帮我这个

你可以在http://test.bidaran.ir看到代码




It's very important
please help me on this
you can see the code at http://test.bidaran.ir

推荐答案

(文件).ready(function(){
//
(document).ready(function () { //


( .impLeftNews:nth-​​child(odd))。css(background-color,silver);
var counter = 0 ;
var slideCount =
(".impLeftNews:nth-child(odd)").css("background-color", "silver"); var counter = 0; var slideCount =


。slides> li)。length;
var sliderTimer;
var newscounter = 0 ;
var newsSlideCount =
(".slides>li").length; var sliderTimer; var newscounter = 0; var newsSlideCount =


这篇关于我的jquery滑块在IE上不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆