jquery(".fullslide").slide({ titcell: ".hd ul", maincell: ".bd ul", effect: "fold", autoplay: true, autopage: true, intertime:7000, trigger: "click", autopage:"
  • ", startfun: function (i) { var curli = jquery(".fullslide .bd li").eq(i); if (!!curli.attr("_src")) { curli.css("background-image", curli.attr("_src")).removeattr("_src") } } }); //新闻滚动// jquery(".notice").slide({titcell:".hd ul",maincell:".bd ul",autopage:true,effect:"top",autoplay:true,vis:2}); //ys// jquery(".fc").slide({maincell:".bd ul",autoplay:true}); jquery(".honor_nr").slide({maincell: ".bd ul", effect: "leftloop", autoplay:true, vis: 5, scroll: 1, delaytime:500,prevcell: ".next", nextcell: ".prev"}); jquery(".ys_box").slide({maincell: ".bd ul", effect: "fold", autoplay:true, vis: 1, scroll: 1, delaytime:500,prevcell: ".next", nextcell: ".prev"}); $('.reasonboxbottombottom ul li').mouseenter(function () { var index_s = $(this).index(); console.log(index_s); $('.reasonboxbottombottom ul li').removeclass('on'); $(this).addclass('on'); $('.ys .hd li').eq(index_s).trigger('mouseenter'); }) $('.ys .hd li').mouseenter(function () { var index_ = $(this).index(); $('.reasonboxbottombottom ul li').removeclass('on'); $('.reasonboxbottombottom ul li').eq(index_).addclass('on'); }) //product// //fc// $(".fc_list li:first").addclass("casehover"); $(".fc_box .fc_nr").eq(0).show(); $(".fc_list li").hover(function () { $(this).addclass("casehover").siblings().removeclass("casehover"); $(".fc_box .fc_nr").hide().eq($(this).index()).show(); }, function () { }); //news// $(".honor_list li:first").addclass("casehover"); $(".honor_box .honor_nr").eq(0).show(); $(".honor_list li").hover(function () { $(this).addclass("casehover").siblings().removeclass("casehover"); $(".honor_box .honor_nr").hide().eq($(this).index()).show(); }, function () { }); jquery(".news_top").slide({titcell:".hd ul",maincell:".bd ul",autopage:true,effect:"left",autoplay:true,vis:1,prevcell: ".next", nextcell: ".prev"}); $('.news_list li').mouseenter(function(){ $(this).addclass('on').siblings('li').removeclass('on') }) function initmenu() { $('#menu ul').hide(); $('#menu ul:first').show(); $('#menu li div').mouseover( function() { var checkelement = $(this).next(); if((checkelement.is('ul')) && (checkelement.is(':visible'))) { return false; } if((checkelement.is('ul')) && (!checkelement.is(':visible'))) { $('#menu ul:visible').slideup('normal'); checkelement.slidedown('normal'); return false; } } ); } $(document).ready(function() {initmenu();}); //--------------------------------导航 js-------------------------------------// function dropmenu(obj){ $(obj).each(function(){ var thespan = $(this); var themenu = thespan.find(".submenu"); var tarheight = themenu.height(); themenu.css({height:0,opacity:0}); var t1; function expand() { cleartimeout(t1); thespan.find('a').addclass("selected"); themenu.stop().show().animate({height:tarheight,opacity:1},200); } function collapse() { cleartimeout(t1); t1 = settimeout(function(){ thespan.find('a').removeclass("selected"); themenu.stop().animate({height:0,opacity:0},200,function(){ $(this).css({display:"block"}); }); }, 250); } thespan.hover(expand, collapse); themenu.hover(expand, collapse); }); } $(document).ready(function(){ dropmenu(".pro_li"); }); jquery(".pro_list").slide({}); $('.pro_list li').mouseenter(function(){ $(this).addclass('on').siblings('li').removeclass('on') }) $('.ab_list li').mouseenter(function(){ $(this).addclass('on').siblings('li').removeclass('on') })     $('.b1').html((i, html) => {         return '' + $.trim(html).split('').join('') + '';     });     $('.b2').html((i, html) => {         return '' + $.trim(html).split('').join('') + '';     });     $('.b3').html((i, html) => {         return '' + $.trim(html).split('').join('') + '';     }); $('.b1 i').each(function (index) { $(this).addclass('fadeinup') $(this).css('animation-delay', (index + 1) * 0.2 + 's') }) $('.b2 i').each(function (index) { $(this).addclass('fadeinup') $(this).css('animation-delay', (index + 1) * 0.1 + 's') }) $('.b3 i').each(function (index) { $(this).addclass('fadeinup') $(this).css('animation-delay', (index + 1) * 0.05 + 's') })