<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<!--<base href="http://www.cfbigbag.com/">-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>吨袋|集装袋|导电集装袋|防静电集装袋-邯郸市白鲨包装有限公司</title>
	<meta content="" name=keywords>
<meta content="" name=description>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
	<meta name="baidu-site-verification" content="WROzGrYJaa">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<script src="static/js/jquery-1.4.2.min.js"></script>

</head>

<link rel="stylesheet" type="text/css" href="static/css/pub.css">

<body>
    <div class="bg">
    <style>
    .nav{
        background-image:none;
        background-color: #1e85ea;
    }
    .nav ul li a:hover{
        background-image: none;
    }
    .pc1{
        display: block;
    }
    .mo1{
        display: none;
    }
    .titlea img{
           width:100px;
       }
        #about video{
           /*width:50%;*/
           /*height:colee1_20%;*/
       }
   @media screen and (max-width : 767px){
       .pc1{
           display: none!important;
       }
       .mo1{
           
           display: block!important;
       }
       #player{
           height:136px;
       }
       .titlea img{
           width:60px;
       }
       .titlea{
           position:absolute;
           top:0;
           left:0;
       }
       #about video{
           width:90vw!important;
       }
       .container{
           margin-top:0px;
       }
   }
    </style>
    <div class="container">
        <div id="player">
            <ul class="Limg pc1">
                    
                <li><img src="https://www.bsbigbag.com/uploadfile/202512/e01500f4aa36f5e.png" alt="1" class="img"><span class="titlea"><img src="https://www.bsbigbag.com/uploadfile/202512/d3eb9be51b4777b.png" width="189"></span></li>
                    
                <li><img src="https://www.bsbigbag.com/uploadfile/202512/f937534a7efc4.png" alt="1" class="img"><span class="titlea"><img src="https://www.bsbigbag.com/uploadfile/202512/d3eb9be51b4777b.png" width="189"></span></li>
                    
                <li><img src="https://www.bsbigbag.com/uploadfile/202512/c684cb9a9512b0c.png" alt="1" class="img"><span class="titlea"><img src="https://www.bsbigbag.com/uploadfile/202512/d3eb9be51b4777b.png" width="189"></span></li>
                    
                <li><img src="https://www.bsbigbag.com/uploadfile/202512/5fdf2888fc39eda.png" alt="1" class="img"><span class="titlea"><img src="https://www.bsbigbag.com/uploadfile/202512/d3eb9be51b4777b.png" width="189"></span></li>
                            </ul>
            <ul class="Limg mo1">
                                <li><img src="https://www.bsbigbag.com/uploadfile/202512/bc004c5a7cf3ec8.jpg" alt="1" class="img"><span class="titlea"><img src="https://www.bsbigbag.com/uploadfile/202512/d3eb9be51b4777b.png" width="189"></span></li>
                                <li><img src="https://www.bsbigbag.com/uploadfile/202512/516d1bf08f82.jpg" alt="1" class="img"><span class="titlea"><img src="https://www.bsbigbag.com/uploadfile/202512/d3eb9be51b4777b.png" width="189"></span></li>
                                <li><img src="https://www.bsbigbag.com/uploadfile/202512/25538a8ba5010f7.png" alt="1" class="img"><span class="titlea"><img src="https://www.bsbigbag.com/uploadfile/202512/d3eb9be51b4777b.png" width="189"></span></li>
                                <li><img src="https://www.bsbigbag.com/uploadfile/202512/6688d162fc6a866.png" alt="1" class="img"><span class="titlea"><img src="https://www.bsbigbag.com/uploadfile/202512/d3eb9be51b4777b.png" width="189"></span></li>
                            </ul>
            <cite class="Nubbt"></cite> 
        </div>
   

    <script type="text/javascript" src="static/js/jquery.js"></script>
    <script language=javascript type="text/javascript">
    // -------------------------- 核心修改1：只针对当前可见的ul生成指示器 --------------------------
    // 1. 判断当前可见的ul（PC端是.pc1，移动端是.mo1）
    function getCurrentVisibleUl() {
        // 利用CSS的display状态判断，避免重复写屏幕宽度逻辑（和你的CSS自适应保持一致）
        const $pcUl = $("#player .pc1");
        const $moUl = $("#player .mo1");
        return $pcUl['css']("display") === "block" ? $pcUl : $moUl;
    }
    const $visibleUl = getCurrentVisibleUl(); // 当前可见的ul

    // 2. 只遍历可见ul下的li生成指示器（不再遍历所有ul的li）
    $visibleUl['find']("li").each(function(){
        // 索引从1开始（保持你原有的计数逻辑）
        const i = $visibleUl['find']("li").index($(this)) + 1;
        $("#player .Nubbt").append('<span >'+i+'</span>');
    });

    // 3. 只给可见ul对应的第一个指示器加on（避免操作隐藏ul的指示器）
    $("#player .Nubbt span").eq(0).addClass('on');


    // -------------------------- 核心修改2：轮播逻辑只操作可见ul的li --------------------------
    (function(){
        if(!Function.prototype.bind){
            Function.prototype.bind = function(obj){
                var owner = this,args = Array.prototype.slice.call(arguments),callobj = Array.prototype.shift.call(args);
                return function(e){e=e||top.window.event||window.event;owner.apply(callobj,args.concat([e]));};
            };
        }
    })();

    var player = function(id){
        this.ctn = document.getElementById(id);
        this.adLis = null; // 轮播图li（后续只存可见ul的li）
        this.btns = null;  // 指示器按钮
        this.animStep = 0.2;//动画速度0.1～0.9
        this.switchSpeed = 3;//自动播放间隔(s)
        this.defOpacity = 1;
        this.tmpOpacity = 1;
        this.crtIndex = 0;  // 当前激活的索引
        this.crtLi = null;
        this.adLength = 0;  // 轮播图数量（只算可见ul的li）
        this.timerAnim = null;
        this.timerSwitch = null;
        this.init();
    };

    player.prototype = {
        fnAnim:function(toIndex){
            if(this.timerAnim){window.clearTimeout(this.timerAnim);}
            if(this.tmpOpacity <= 0){
                this.crtLi.style.opacity = this.tmpOpacity = this.defOpacity;
                this.crtLi.style.filter = 'Alpha(Opacity=' + this.defOpacity*100 + ')';
                this.crtLi.style.zIndex = 0;
                this.crtIndex = toIndex;
                return;
            }
            this.crtLi.style.opacity = this.tmpOpacity = this.tmpOpacity - this.animStep;
            this.crtLi.style.filter = 'Alpha(Opacity=' + this.tmpOpacity*100 + ')';
            this.timerAnim = window.setTimeout(this.fnAnim.bind(this,toIndex),50);
        },
        fnNextIndex:function(){
            return (this.crtIndex >= this.adLength-1)?0:this.crtIndex+1;
        },
        fnSwitch:function(toIndex){
            if(this.crtIndex==toIndex || this.adLength <= 1){return;} // 只有1张图时不切换
            this.crtLi = this.adLis[this.crtIndex];
            // 只操作可见ul的li的z-index（避免影响隐藏ul的li）
            for(var i=0;i<this.adLength;i++){
                this.adLis[i].style.zIndex = 0;
            }
            this.crtLi.style.zIndex = 2;
            this.adLis[toIndex].style.zIndex = 1;
            // 只更新当前指示器的active状态
            for(var i=0,l=this.btns.length;i<l;i++){
                this.btns[i].className = '';
            }
            this.btns[toIndex].className = 'on';
            this.fnAnim(toIndex);
        },
        fnAutoPlay:function(){
            this.fnSwitch(this.fnNextIndex());
        },
        fnPlay:function(){
            if(this.adLength <= 1) return; // 只有1张图时不自动播放（避免无效循环）
            this.timerSwitch = window.setInterval(this.fnAutoPlay.bind(this),this.switchSpeed*1000);
        },
        fnStopPlay:function(){
            // 修复：原clearTimeout改为clearInterval（定时器是循环的，需用clearInterval清除）
            if(this.timerSwitch) window.clearInterval(this.timerSwitch);
        },
        init:function(){
            // -------------------------- 关键修改：只获取可见ul的li --------------------------
            this.adLis = $visibleUl['find']("li").get(); // jQuery对象转原生DOM数组（只取可见ul的li）
            this.btns = this.ctn.getElementsByTagName('cite')[0].getElementsByTagName('span');
            this.adLength = this.adLis.length; // 轮播图数量 = 可见ul的li数量

            // 绑定指示器点击事件（只绑定当前生成的指示器）
            for(var i=0,l=this.btns.length;i<l;i++){
                this.btns[i].index = i;
                this.btns[i].onclick = this.fnSwitch.bind(this,i);
                // 原代码重复绑定了2次onclick，删除重复的一次
            }

            // 初始化可见ul的第一张图z-index（确保默认显示第一张）
            if(this.adLength > 0){
                this.adLis[this.crtIndex].style.zIndex = 2;
            }

            this.fnPlay();
            // 鼠标悬停/离开事件
            this.ctn.onmouseover = this.fnStopPlay.bind(this)    
    <script type="text/javascript">
        var mk_fanyi_lang = ["chinese_simplified","english"];
        var mk_fanyi_tag = "";
        var mk_fanyi_class = "";
        var mk_fanyi_web_lang = "chinese_simplified";
        var mk_fanyi_auto_lang = "";
    </script>
    <script src='/static/assets/maike/fanyi/mk_translate.min.js?v=2.5' type='text/javascript'></script>