Jssor non-jquery slider. multiple slider on one page [closed]

江枫思渺然 提交于 2019-12-20 06:33:13

问题


Is there way to put multiple sliders on a single page? Thank you


回答1:


Given 2 sliders in one page, the first is 'slider1', the second is 'slider2'

<script>
    jssor_slider1_starter = function (containerId) {
        ...
    };
    jssor_slider2_starter = function (containerId) {
        ...
    };
</script>
<div id="slider1_container" style="position: relative; top: 0px; left: 0px; width: 600px;
    height: 300px;">
    ...
    <script>
        jssor_slider1_starter('slider1_container');
    </script>
</div>
<div id="slider2_container" style="position: relative; top: 0px; left: 0px; width: 600px;
    height: 300px;">
    ...
    <script>
        jssor_slider2_starter('slider2_container');
    </script>
</div>


来源:https://stackoverflow.com/questions/22466300/jssor-non-jquery-slider-multiple-slider-on-one-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!