$(document).ready(function(){ (function() { $(function() { var title = $.trim($(".p_breadcrumb .p_breadcrumbItem:last-child span").text()); $(".p_loopitem").each(function( index ) { var title1 = $.trim($(this).find(".s_title a").text()); if(title == title1) { $(this).addClass("click"); } }); }); })(); $("#c_category_072-1646806330293 .p_loopitem").click(function() { $(this).find(".e_container-27").toggleClass("menu_open").siblings().removeClass("menu_open"); $(this).siblings().find(".e_container-27").removeClass("menu_open"); }); $(".cbox-61-0 .p_loopItem:eq(0)").attr("id","miaoshu"); $(".cbox-61-0 .p_loopItem:eq(1)").attr("id","keys"); $(".cbox-61-0 .p_loopItem:eq(2)").attr("id","Specifications"); $(".techdao li a").click(function () { $(this).addClass("dandan").parent("li").siblings().find("a").removeClass("dandan"); var href = $(this).attr("href"); var pos = $(href).offset().top - 150; $("html,body").animate({scrollTop:pos}, 500); return false; }); (function() { $(function() { var d = setInterval(function() { var title = $.trim($(".p_breadcrumb .p_breadcrumbItem:last-child span").text()); if(title != "") { $(".p_loopitem .s_title a:contains("+title+")").parents(".p_loopitem").addClass("click"); } },500); }); })(); /*$("#c_static_001-1669632141461").addClass("guding"); $("#cplanmu").parent().addClass("guding"); //滚动条事件 $(window).scroll(function () { var out = 108 //获取要定位元素距离浏览器顶部的距离 var navH1 = $(".guding").offset().top - out; var navHscroll = $(".guding").prev().height(); //获取滚动条的滑动距离 var scroH1 = $(this).scrollTop(); //滚动条的滑动距离大于等于定位元素距离浏览器顶部的距离,就固定,反之就不固定 if (scroH1 >= navHscroll - out) { $(".guding").addClass("gudeng"); } else{ $(".guding").removeClass("gudeng"); } }); });*/ if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))){ new WOW().init(); }; $(".matching ul li").addClass("wow fadeInUp"); $(".material1 ul li").addClass("wow fadeInUp"); $(".spec ul li").addClass("wow fadeInUp"); $(".biaoti").addClass("wow fadeInUp").css({'animation-delay': '0.5s'}); $(".material2").addClass("wow fadeInUp").css({'animation-delay': '0.5s'}); $(".renderings1").addClass("wow fadeInLeft").css({'animation-delay': '0.5s'}); $(".renderings2").addClass("wow fadeInRight").css({'animation-delay': '0.5s'}); $(document).ready(function(){ $(".matching ul li").each(function(index) { $(this).css({'animation-delay': (index/5)+'s'}); }); $(".material1 ul li").each(function(index) { $(this).css({'animation-delay': (index/5)+'s'}); }); $(".spec ul li").each(function(index) { $(this).css({'animation-delay': (index/5)+'s'}); }); }) })