<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">$(function () {
    //å®šä½å½“å‰é¡µé¢åœ¨å¯¼èˆªä¸Šçš„ä½ç½®
    $('.nav-menu &gt; li').hover(function () {
        $(this).siblings().removeClass('active')
        $(this).addClass('active')
    }, function () {
        $(this).parent().find('li').removeClass('active')
        $('.nav-menu &gt; li &gt; a[href="' + location.href + '"]').parent().addClass('active')
    })
    $('.nav-menu &gt; li &gt; a[href="' + location.href + '"]').parent().addClass('active')


    //é¡¶éƒ¨æ–°é—»æ»šåŠ¨
    $(".font_inner li:eq(0)").clone(true).appendTo($(".font_inner"));//å…‹éš†ç¬¬ä¸€ä¸ªæ”¾åˆ°æœ€åŽ(å®žçŽ°æ—&nbsp;ç¼æ»šåŠ¨)
    var liHeight = $(".swiper_wrap").height();//ä¸€ä¸ªliçš„é«˜åº¦
    //èŽ·å–liçš„æ€»é«˜åº¦å†å‡åŽ»ä¸€ä¸ªliçš„é«˜åº¦(å†å‡ä¸€ä¸ªLiæ˜¯å›&nbsp;ä¸ºå…‹éš†äº†å¤šå‡ºäº†ä¸€ä¸ªLiçš„é«˜åº¦)
    var totalHeight = ($(".font_inner li").length * $(".font_inner li").eq(0).height()) - liHeight;
    $(".font_inner").height(totalHeight);//ç»™ulèµ‹å€¼é«˜åº¦
    var index = 0;
    var autoTimer = 0;//å…¨å±€å˜é‡ç›®çš„å®žçŽ°å·¦å³ç‚¹å‡»åŒæ­¥
    var clickEndFlag = true; //è®¾ç½®æ¯å¼&nbsp;èµ°å®Œæ‰èƒ½å†ç‚¹å‡»

    function tab() {
        $(".font_inner").stop().animate({
            top: -index * liHeight
        }, 400, function () {
            clickEndFlag = true;//å›¾ç‰‡èµ°å®Œæ‰ä¼štrue
            if (index == $(".font_inner li").length - 1) {
                $(".font_inner").css({top: 0});
                index = 0;
            }
        })
    }

    function next() {
        index++;
        if (index &gt; $(".font_inner li").length - 1) {//åˆ¤æ–­indexä¸ºæœ€åŽä¸€ä¸ªLiæ—¶indexä¸º0
            index = 0;
        }
        tab();
    }

    function prev() {
        index--;
        if (index &lt; 0) {
            index = $(".font_inner li").size() - 2;//å›&nbsp;ä¸ºindexçš„0 == ç¬¬ä¸€ä¸ªLiï¼Œå‡äºŒæ˜¯å›&nbsp;ä¸ºä¸€å¼€å§‹å°±å…‹éš†äº†ä¸€ä¸ªLIåœ¨å°¾éƒ¨ä¹Ÿå°±æ˜¯å¤šå‡ºäº†ä¸€ä¸ªLiï¼Œå‡äºŒä¹Ÿå°±æ˜¯_index = Liçš„é•¿åº¦å‡äºŒ
            $(".font_inner").css("top", -($(".font_inner li").size() - 1) * liHeight);//å½“_indexä¸º-1æ—¶æ‰§è¡Œè¿™æ¡ï¼Œä¹Ÿå°±æ˜¯èµ°åˆ°liçš„æœ€åŽä¸€ä¸ª
        }
        tab();
    }

    //åˆ‡æ¢åˆ°ä¸‹ä¸€å¼&nbsp;
    $(".swiper_wrap .gt").on("click", function () {
        if (clickEndFlag) {
            next();
            clickEndFlag = false;
        }
    });
    //åˆ‡æ¢åˆ°ä¸Šä¸€å¼&nbsp;
    $(".swiper_wrap .lt").on("click", function () {
        if (clickEndFlag) {
            prev();
            clickEndFlag = false;
        }
    });
    //è‡ªåŠ¨è½®æ’­
    autoTimer = setInterval(next, 3000);
    $(".font_inner a").hover(function () {
        clearInterval(autoTimer);
    }, function () {
        autoTimer = setInterval(next, 3000);
    })

    //é¼&nbsp;æ&nbsp;‡æ”¾åˆ°å·¦å³æ–¹å‘æ—¶å…³é—­å®šæ—¶å™¨
    $(".swiper_wrap .lt,.swiper_wrap .gt").hover(function () {
        clearInterval(autoTimer);
    }, function () {
        autoTimer = setInterval(next, 3000);
    })
    //1æ–‡å­—è½®æ’­(2-5é¡µä¸­é—´)ç»“æŸ


    //banneræ»šåŠ¨
    $('.banner').bxSlider({
        mode: 'fade',
        slideWidth: 1920,
        slideMargin: 10,
        auto: true,
        controls: false
    });

    //äº§å“æ»šåŠ¨
    $('.product-scroll').bxSlider({
        slideWidth: 220,
        minSlides: 2,
        maxSlides: 4,
        moveSlides: 1,
        slideMargin: 10,
        auto: true,
        pager: false,
        controls: false
    });

    //æ¡ˆä¾‹æ»šåŠ¨
    $('.case-scroll').bxSlider({
        slideWidth: 180,
        minSlides: 2,
        maxSlides: 6,
        moveSlides: 3,
        slideMargin: 10,
        auto: true,
        pager: false,
        controls: false
    });

    //æ¡ˆä¾‹æ»šåŠ¨
    $('.info-product-image').bxSlider({
        mode: 'fade',
        slideWidth: 1920,
        slideMargin: 10,
        auto: true,
        controls: false
    });
})


//toolbar1

$(function(){
    /(iPhone|iPad|iPhone OS|Phone|iPod|iOS)/i.test(navigator.userAgent) &amp;&amp; (head = document.getElementsByTagName("head"), viewport = document.createElement("meta"), viewport.name = "viewport", viewport.content = "target-densitydpi=device-dpi, width=1200px, user-scalable=no", head.length &gt; 0 &amp;&amp; head[head.length - 1].appendChild(viewport));
    toolbar();//å³ä¾§æ‚¬æµ®
    String.prototype.trim = function () {
        return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
    }
    
});
//toolbar
function toolbar(){
    $('#toolbar dd').bind({
        'mouseenter': function () {
            if ($(this).children('.slide').length) {
                var _this = $(this).children('.slide');
                _this.stop(true, true).animate({ 'width': 180 }, 200);
            } else if ($(this).children('.pop').length) {
                var _this = $(this).children('.pop');
                _this.show().animate({ 'right': 65 }, 180);
            }
        },
        'mouseleave': function () {
            if ($(this).children('.slide').length) {
                var _this = $(this).children('.slide');
                _this.stop(false, false).animate({ 'width': 0 }, 200);
            } else if ($(this).children('.pop').length) {
                var _this = $(this).children('.pop');
                _this.hide().animate({ 'right': 90 },190);
            }
        }
    });
    $("#toolbar .tanbtn").click(function(){
        $(".dig").show();
        layout(1);
        $('.dig .d_tit').find("b").text($(this).text());
    })
    $(".dig .icon_close").click(function(){
        $(".dig").hide();
        layout(0);
    })
    $("#gotop").click(function() {
        $("body, html").stop().animate({
                "scrollTop": 0
        });
    });

}

function share(){
    window._bd_share_config = {
    "common": {
        "bdSnsKey": {},
        "bdText": "",
        "bdMini": "2",
        "bdMiniList": false,
        "bdPic": "",
        "bdStyle": "0",
        "bdSize": "16"
    },
    "share": {},
    "slide": { // è·Ÿå›¾æ&nbsp;‡å¼çš„ä»£ç&nbsp;ç›¸æ¯”ï¼Œè¿™é‡Œæ˜¯æ·»åŠ&nbsp;äº†æµ®çª—å¼ slide å±žæ€§é…ç½®
        "type": "slide",
        "bdImg": "5",
        "bdPos": "left",
        "bdTop": "100"
    }
};
}




/*äº§å“*/

 var speed=50
  link_logo2.innerHTML=link_logo1.innerHTML
    function Marquee2(){
  if(link_logo.scrollTop &gt;= link_logo1.scrollHeight)
     link_logo.scrollTop=0
   else{
    link_logo.scrollTop++
   }
      }
     var MyMar2=setInterval(Marquee2,speed)
    link_logo.onmouseover=function() {clearInterval(MyMar2)}
   link_logo.onmouseout=function() {MyMar2=setInterval(Marquee2,speed)}
   

    $(".c9box li").hover(function(){
        $(this).children("a").stop().animate({top:"0px"},600);
    },function(){
        $(this).children("a").stop().animate({top:"-229px"},600);
    });

</pre></body></html>