Javascript Jssor&x27;s附近的图像部分可见滑块:必须单击滑块才能加载图片

Javascript Jssor&x27;s附近的图像部分可见滑块:必须单击滑块才能加载图片,javascript,twitter-bootstrap,jssor,Javascript,Twitter Bootstrap,Jssor,我正在用bootstrap创建一个网站,并试图将Jssor附近的图像部分可见滑块集成到一个页面中。您可以看到页面的实时链接。 特定滑块的问题是,在页面加载时,仅加载第一张图片。然后,我必须单击滑块以加载其余图片。 不幸的是,我没有javascript知识,无法独自处理这个问题,所以我真的希望有人能帮助我。提前感谢大家抽出时间 html文件: 艺术设计-利雅得王国大厦 切换导航 KSA利雅得王国大厦 。上上周五的除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除

我正在用bootstrap创建一个网站,并试图将Jssor附近的图像部分可见滑块集成到一个页面中。您可以看到页面的实时链接。 特定滑块的问题是,在页面加载时,仅加载第一张图片。然后,我必须单击滑块以加载其余图片。 不幸的是,我没有javascript知识,无法独自处理这个问题,所以我真的希望有人能帮助我。提前感谢大家抽出时间

html文件:


艺术设计-利雅得王国大厦
切换导航
KSA利雅得王国大厦

。上上周五的除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了νρανού

照明设计师:
乔治·泰洛斯
构造函数:
马西克控股公司
地点:
吉达克萨

jQuery(文档).ready(函数($){ 变量选项={ $AutoPlay:false, $PauseOnHover:true,//[可选]当鼠标悬停在幻灯片上时是否暂停如果幻灯片是自动播放的,默认值为false $ArrowKeyNavigation:true,//允许或不允许箭头键导航 $SlideWidth:600,//[可选]每个幻灯片的宽度(以像素为单位),默认为“幻灯片”容器的宽度 //$SlideHeight:300,//[可选]每个幻灯片的高度(以像素为单位),默认为“幻灯片”容器的宽度 $SlideSpacing:0,//每张幻灯片之间的间距(以像素为单位) $Cols:2,//要显示的片段数(如果该值设置为大于1,则将禁用幻灯片放映),默认值为1 $Align:100,//驻车幻灯片的偏移位置(此选项仅在禁用幻灯片放映时适用)。 $ArrowNavigatorOptions:{//[可选]用于指定和启用或不启用箭头导航器的选项 $Class:$jssorarrowsnavigator$,//[Required]类创建箭头导航器实例 $ChanceToShow:2,//[必需]0从不,1次鼠标悬停,2次始终 $Steps:1//[可选]每个导航请求的步骤,默认值为1 } }; var jssor_slider1=新的$JssorSlider$(“slider1_容器”,选项); //响应代码开始 函数ScaleSlider(){ var parentWidth=jssor_slider1.$Elmt.parentNode.clientWidth; 如果(父宽度) jssor_slider1.$ScaleWidth(Math.min(parentWidth,800)); 其他的 设置超时(ScaleSlider,30); }; ScaleSlider(); jssor_滑块1.$Play(); $(窗口).bind(“加载”,ScaleSlider); $(窗口)。绑定(“调整大小”,缩放滑块); $(窗口).bind(“方向更改”,缩放滑块); //响应代码端 });

肯尼亚首都利雅得王国大厦

。上上周五的除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了除了νρανού

照明设计师:乔治·泰洛斯(GEORGE TELLOS)建筑商:马西奇控股公司地点:吉达KSA

<script>
        jssor_slider1_starter('slider1_container');
</script>
<div id="slider1_container" style="position: relative; top: 0px; left: 0px; width: 600px; height: 300px; overflow: hidden;">
    <!-- Slides Container --> 
    <div id="slider1_container-inside" u="slides" style="cursor: move; position: absolute; left: 0px; top: 0px; width: 600px; height: 300px; overflow: hidden;">
<!-- Main Body Start -->
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-12 col-md-3 col-lg-2 hidden-xs">
            <div class="pull-right-md pull-right-lg">
                <!-- Project Text Info -->
                <div class="pull-right-md pull-right-lg">
                    <section class="project-info">
                        <p class="project-title tmarg-twenty">KINGDOM TOWER RIYADH, KSA</p>
                        <p class="project-info-text">On the roof of the highest and most impressive building of Saudi Arabia light sources were installed, supplied by the TIC Riyadh.</p>
                        <p class="project-crew">
                            <span class="project-crew-property">Lighting Designer:<span><br>
                            <span class="project-crew-value">George Tellos</span><br>
                            <span class="project-crew-property">Constructor:</span><br>
                            <span class="project-crew-value">Masic Holding</span><br>
                            <span class="project-crew-property">Location:</span><br>
                            <span class="project-crew-value">Jeddah KSA</span>
                        </p>
                    </section>
                </div>
            </div>
        </div>
        <div class="clearfix visible-sm"></div>
        <div class="col-sm-12 col-md-9 hidden-lg carousel-col">
             <div id="carousel-project" class="carousel slide"  data-interval=3000 data-keyboard=true data-pause="hover" data-wrap=true>
                    <!-- Indicators -->
                    <ol class="carousel-indicators">
                        <li data-target="#carousel-project" data-slide-to="0" class="active"></li>
                        <li data-target="#carousel-project" data-slide-to="1"></li>
                        <li data-target="#carousel-project" data-slide-to="2"></li>
                    </ol>
                    <!-- Wrapper Start: slider images and captions  -->
                    <div class="carousel-inner">
                        <div class="item active">
                            <img src="../../images/projects/06 THE KINGDOM TOWER RIYADH/Kingdom Tower Riyadh, Kingdom of Saudi Arabia.png" width="789" height="1080" alt=""/>
                        </div>
                        <div class="item">
                            <img src="../../images/projects/06 THE KINGDOM TOWER RIYADH/1.JPG" width="717" height="1080" alt=""/>
                        </div>
                        <div class="item">
                            <img src="../../images/projects/06 THE KINGDOM TOWER RIYADH/2.JPG" width="717" height="1080" alt=""/>
                        </div>
                    </div>
                  <!-- Wrapper End: slider images and the captions  -->
                  <!-- Carousel Custom Controls Start -->
                  <a class="left carousel-control" href="#carousel-project" role="button" data-slide="prev">
                      <span u="arrowleft" class="jssoral" style="width: 55px; height: 55px; top: 50%; left: 8px;">
                      </span>
                  </a>            
                  <a class="right carousel-control" href="#carousel-project" role="button" data-slide="next">
                      <span u="arrowright" class="jssorar" style="width: 55px; height: 55px; top: 50%; right: 8px">
                      </span>
                  </a>
                  <!-- Carousel Custom Controls End -->
                  <!-- Carousel End -->
             </div>
        </div>
        <div class="col-lg-10 visible-lg carousel-col">
            <!-- Project Carousel -->
            <script>
                jQuery(document).ready(function ($) {
                    var options = {
                        $AutoPlay: 0,

                        $PauseOnHover: true,                               //[Optional] Whether to pause when mouse over if a slideshow is auto playing, default value is false

                        $ArrowKeyNavigation: true,                          //Allows arrow key to navigate or not
                        $SlideWidth: 600,                                   //[Optional] Width of every slide in pixels, the default is width of 'slides' container
                        //$SlideHeight: 300,                                  //[Optional] Height of every slide in pixels, the default is width of 'slides' container
                        $SlideSpacing: 0,                                   //Space between each slide in pixels
                        $Cols: 2,                                  //Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), the default value is 1
                        $Align: 100,                                //The offset position to park slide (this options applys only when slideshow disabled).

                        $ArrowNavigatorOptions: {                       //[Optional] Options to specify and enable arrow navigator or not
                            $Class: $JssorArrowNavigator$,              //[Requried] Class to create arrow navigator instance
                            $ChanceToShow: 2,                               //[Required] 0 Never, 1 Mouse Over, 2 Always
                            $Steps: 1                                       //[Optional] Steps to go for each navigation request, default value is 1
                    }
                };
                var jssor_slider1 = new $JssorSlider$("slider1_container", options);
                //responsive code begin
                function ScaleSlider() {
                    var usable_width = window.innerWidth;
                    var carousel_width = usable_width-(usable_width*0.33); //because of the left column
                    var parentWidth = jssor_slider1.$Elmt.parentNode.clientWidth;
                    if (parentWidth)
                        jssor_slider1.$ScaleWidth(Math.min(parentWidth, carousel_width));
                    else
                        window.setTimeout(ScaleSlider, 30);
                };
                ScaleSlider();
                jssor_slider1.$Play();
                $(window).bind("load", ScaleSlider);
                $(window).bind("resize", ScaleSlider);
                $(window).bind("orientationchange", ScaleSlider);
                //responsive code end
                });
            </script>
            <!-- Jssor Slider Begin -->
            <!-- You can move inline styles to css file or css block. -->
            <div id="slider1_container" style="position: relative; top: 0px; left: 0px; overflow: hidden;">
                <!-- Slides Container --> 
                <div id="slider1_container-inside" u="slides" style="cursor: move; position: absolute; left: 0px; top: 0px; overflow: hidden;">  <!-- height: 1000px; -->
                    <div><img class="img-responsive" u="image" src="../../images/projects/06 THE KINGDOM TOWER RIYADH/Kingdom Tower Riyadh, Kingdom of Saudi Arabia.png" /></div>
                    <div><img class="img-responsive" u="image" src="../../images/projects/06 THE KINGDOM TOWER RIYADH/1.JPG" /></div>
                    <div><img class="img-responsive" u="image" src="../../images/projects/06 THE KINGDOM TOWER RIYADH/2.JPG" /></div>
                </div>
                <div id="arrow_container" class="bubble">
                    <!-- Arrow Left -->
                    <div class="vertical-align-middle">
                        <span u="arrowleft" class="jssoral" style="width: 40px; height: 50px; left: 30px;"></span> <!-- top: 500px; -->
                    </div>
                    <!-- Arrow Right -->
                    <div class="vertical-align-middle">
                        <span u="arrowright" class="jssorar" style="width: 40px; height: 50px; right: 30px;"></span> <!-- top: 500px; -->
                    </div>
                    <!-- Arrow Navigator Skin End -->
                </div>
            </div>
            <!-- Jssor Slider End -->
        </div>
        <div class="col-xs-12 visible-xs">
            <div class="pull-right-md pull-right-lg">
                <!-- Project Text Info -->
                <div class="pull-right-md pull-right-lg">
                    <section class="project-info">
                        <p class="project-title">KINGDOM TOWER RIYADH, KSA</p>
                        <p class="project-info-text">On the roof of the highest and most impressive building of Saudi Arabia light sources were installed, supplied by the TIC Riyadh.</p>
                        <p class="project-crew">Lighting Designer: GEORGE TELLOS<br>Constructor: MASIC HOLDING<br>Location: JEDDAH KSA</p>
                    </section>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Main Body End -->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../../js/bootstrap.min.js"></script>
<script>
        $(window).resize(function WinResize1()
        {
            var usable_height = $(window).height();
            var carousel_height = usable_height-55; //beacuse of the navbar
            $('#slider1_container').height(carousel_height);
            $('#slider1_container-inside').height(carousel_height);
            var usable_width = window.innerWidth;
            var carousel_width = usable_width-(usable_width*0.33); //because of the left column
            $('#slider1_container').width(carousel_width);
            $('#slider1_container-inside').width(carousel_width);
            $('#arrow_container').height(carousel_height);
            //alert(carousel_height);
            //alert(carousel_width);    
        })
        $(window).resize();
</script>