bcat-theme.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. $(".lable_nav > li").hover(function () {
  2. $(".lable_nav > li").removeClass('active');
  3. $(this).addClass('active');
  4. var index = $(this).index();
  5. $(".J_lable_nav_con").css("display", 'none');
  6. $(".J_lable_nav_con").eq(index).css("display", 'block');
  7. })
  8. $(".lable_conter_3_left_nav > li").hover(function () {
  9. $(".lable_conter_3_left_nav > li").removeClass('active');
  10. $(this).addClass('active');
  11. var index = $(this).index();
  12. $(".lable_conter_3_left_con ").css("display", 'none');
  13. $(".lable_conter_3_left_con ").eq(index).css("display", 'block');
  14. })
  15. $(".J-select-tab > li").hover(function () {
  16. $(".J-select-tab > li").removeClass('active');
  17. $(this).addClass('active');
  18. })
  19. new Swiper('.swiper-container-top', {
  20. autoplay: true,//可选选项,自动滑动
  21. direction : 'vertical',
  22. })
  23. new Swiper('.vipHall_scroll', {
  24. autoplay: true,//可选选项,自动滑动
  25. slidesPerView : 8,
  26. })
  27. $(".exponent > span:not(:nth-child(1))").click(function () {
  28. var val = $(this).html();
  29. $("#topt").val(val);
  30. })
  31. $(".fb-btn").click(function () {
  32. window.location.href="/user/productlx.php"
  33. })
  34. /*切换分类*/
  35. var type_index= 0;
  36. $("body").delegate(".loadinfo","click",function () {
  37. $(".inner").css("display","none");
  38. if(type_index < 2){
  39. type_index++;
  40. }else{
  41. type_index=0;
  42. }
  43. $(".inner").eq(type_index).css("display","block");
  44. })
  45. $(".startop_tit > span ").hover(function(){
  46. $(".startop_tit > span").removeClass("select");
  47. $(this).addClass("select");
  48. var index = $(this).index();
  49. $(".startop_box > ul").css("display","none");
  50. $(".startop_box > ul").eq(index).css("display","block");
  51. })
  52. /*图片切换*/
  53. $(".tablecorll > a ").hover(function () {
  54. var h_idx = $(this).index();
  55. $(this).parents(".talenthpbox").find(".taletptop").children(".tablelicx").css("display","none");
  56. $(this).parents(".talenthpbox").find(".taletptop").children(".tablelicx").eq(h_idx).css("display","block");
  57. $(this).parents(".talenthpbox").find(".taletptop").children(".tlarrow").css("left",35 + h_idx * 71 + "px");
  58. })