//3个div的统一class = 'div'

var index =0;
//3秒轮播一次
var timer = setInterval(function(){
    index = (index == 2) ? 0 : index + 1;          
    //某个div显示,其他的隐藏
    $(".div").hide().eq(index).show();    
}, 3000);

相关文章:

  • 2022-12-23
  • 2021-12-30
  • 2021-08-07
  • 2021-10-07
  • 2021-11-28
  • 2021-05-25
  • 2022-12-23
猜你喜欢
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-02-13
  • 2022-12-23
  • 2021-07-01
相关资源
相似解决方案