子弹导航仪不是

时间:2015-05-05 20:10:22

标签: jssor jquery-ui-slider navigator

我正在为我的网站添加一个不同尺寸的照片滑块。滑块工作正常,但子弹导航器不会出现。 我将子弹导航器放在了“slider1_container”中,但它仍然无法正常工作。 我也将子弹png导入到根文件夹中。 谢谢你的帮助。

<div id="slider1_container" style="position: relative; width: 700px; height: 467px; background-color: #FFFFFF; overflow: hidden;">

        <!-- Loading Screen -->
<div u="loading" style="position: absolute; top: 0px; left: 0px;">
            <div style="filter: alpha(opacity=70); opacity: 0.7; position: absolute; display: block; background-color: #FFF; top: 0px; left: 0px; width: 100%; height: 100%;">
            </div>
            <div style="position: absolute; display: block; background: url(../img/loading.gif) no-repeat center center;
                top: 0px; left: 0px;width: 100%;height:100%;">
            </div>
        </div>

        <!-- Slides Container -->
        <div u="slides" style="cursor: move; position: absolute; left: 1px; top: 5px; width: 700px; height: 467px; overflow: hidden;">
             <div>
                <a u=image href="#"><img src="images/MoscowSerie1/ moscou mockba 01.jpg" /></a>
    </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/ moscou mockba 02.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/IMG_6130 copy.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/IMG_8611-Edit-Edit-1.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/IMG_6114 copy_2.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/IMG_5825 copy.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="
            images/MoscowSerie1/IMG_2751 copy copy_1.jpg" /></a>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/IMG_2209 copy.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/IMG_0518 _1.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/IMG_0390 copy.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/IMG_0380 bw copy.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/IMG_0341 bw copy copy.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/ moscou mockba 07.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/ moscou mockba 06.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/ moscou mockba 05.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/ moscou mockba 01.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/ moscou mockba 02.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/ moscou mockba 03.jpg" /></a>
            </div>
            <div>
                <a u=image href="#"><img src="images/MoscowSerie1/ moscou mockba 04.jpg" /></a>
            </div>
        </div>

        <!--#region Bullet Navigator Skin Begin -->
        <!-- Help: http://www.jssor.com/development/slider-with-bullet-navigator-jquery.html -->
        <style>
            /* jssor slider bullet navigator skin 13 css */
            /*
            .jssorb13 div           (normal)
            .jssorb13 div:hover     (normal mouseover)
            .jssorb13 .av           (active)
            .jssorb13 .av:hover     (active mouseover)
            .jssorb13 .dn           (mousedown)
            */
            .jssorb13 {
                position: absolute;
            }
            .jssorb13 div, .jssorb13 div:hover, .jssorb13 .av {
                position: absolute;
                /* size of bullet elment */
                width: 21px;
                height: 21px;
                background: <img src="images/SliderNavigators/b13.png" width="120" height="30" alt="navigator">;
                overflow: hidden;
                cursor: pointer;
            }
            .jssorb13 div { background-position: -5px -5px; }
            .jssorb13 div:hover, .jssorb13 .av:hover { background-position: -35px -5px; }
            .jssorb13 .av { background-position: -65px -5px; }
            .jssorb13 .dn, .jssorb13 .dn:hover { background-position: -95px -5px; }
        </style> 
        <!-- bullet navigator container -->
        <div u="navigator" class="jssorb13" style="position: absolute; bottom: 16px; right: 6px;">
        <!-- bullet navigator item prototype -->
        <div u="prototype" style="POSITION: absolute; WIDTH: 21px; HEIGHT: 21px;"></div>
    </div>       
 <!--#endregion Bullet Navigator Skin End -->
        <a style="display: none" href="http://www.jssor.com">Thumbnail Slider</a>       
    </div>
    <!-- Jssor Slider End -->
</body>

1 个答案:

答案 0 :(得分:0)

请确保您指定了$BulletNavigatorOptions

var options = {
   ...,

   BulletNavigatorOptions: {
        $JssorBulletNavigator$,
        $ChanceToShow: 2,
        $AutoCenter: 1,
        $Steps: 1,
        $Lanes: 1,
        $SpacingX: 10,
        $SpacingY: 10,
        $Orientation: 1
    }
};

修改

请将b13.png上传到您的[root]/images文件夹。

并替换

background: <img src="images/SliderNavigators/b13.png" width="120" height="30" alt="navigator">;

background: url(/images/SliderNavigators/b13.png) no-repeat;