锘緾lickTimes = false; (function ($) { if ($('.vdo').length == 1) { var video = $('.vdo')[0]; video.onplay = function () { if (!ClickTimes && $('#_ClickTimes').length == 1) { ClickTimes = true; $.post('/handler/news.ashx', { type: 11, cid: $('#_ClickTimes').attr('val') }, function () { var num = Number($.trim($('#_ClickTimes').text())); num++; $('#_ClickTimes').html('' + num); }); } } } })(jQuery); $(function(){ function toNum(obj){ if(obj.html() >0){ return; } var toVal = obj.attr("toVal"); var toStep = obj.attr("toStep")*1; var start = 0; var tin = 1000/(toVal/toStep); setInterval(function(){ start += toStep; if(start >= toVal){ start = toVal; } obj.html(start); },tin); } if ($(".ab_tags").length == 1) { $(window).scroll(function () { var cjTop = $(".ab_tags").offset().top; if ($(window).scrollTop() + $(window).height() - $('.ab_tags').height() / 2 >= cjTop) { $(".ab_tags .tonum").each(function () { toNum($(this)); }); } }); } //banner 杞挱鍥 var cul_slider = new Swiper('.cul_slider', { effect:"fade", pagination: { el: '.cul_slider .swiper-pagination',//鍒嗛〉閫夋嫨鍣 clickable : true, }, slidesPerView: 1, loop : true, autoplay: false, navigation: {//涓婁竴椤典笅涓€椤 prevEl: '.cul_slider .my-prev', nextEl: '.cul_slider .my-next', }, }); //$(".cul_btns .btn").mouseover(function(e){ // var _index = $(this).index()+1; // $(".cul_btns .btn").removeClass("hover"); // $(this).addClass("hover"); // cul_slider.slideTo(_index,1000) //}); $(".cul_btns .btn").addClass('hover'); $(".ab_his .load").click(function(){ $(".after").show(); $(this).hide(); }); //ho_slider 杞挱鍥 var ho_slider = new Swiper('.ho_slider', { pagination: { el: '.ho_slider .swiper-pagination',//鍒嗛〉閫夋嫨鍣 clickable : true, }, centeredSlides : true, slidesPerView: 3, loop : true, autoplay: { delay: 5000,//5绉掑垏鎹竴娆 disableOnInteraction : false,//鐢ㄦ埛鎿嶄綔鍚庣户缁?true涓哄仠姝 }, navigation: {//涓婁竴椤典笅涓€椤 prevEl: '.ab_outer .my-prev', nextEl: '.ab_outer .my-next', }, }); });