$(".show-product").eq(0).show();
var lis = $(".product ul li");
var k;
for(var i = 0; i < lis.length; i++) {
lis[i].index = i;
$(".product ul li").hover(function() {
$(".product ul li").css({
"background": "#fff",
});
$(".product ul li a").css({
"color": "#333",
});
$(".product ul li a.thisclass").css({
"color": "#fff",
});
$(this).css({
"background": "#046355",
});
$(this).find("a").css({
"color": "#fff",
});

k = this.index;
k = parseInt(k + 1);
$(".show-product").hide();
$(".show-product").eq(k).show();
})
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2021-09-22
猜你喜欢
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2021-10-06
  • 2022-12-23
相关资源
相似解决方案