嵌入在WordPress中的Jssor滑块 - 自定义转换

时间:2015-02-23 12:00:05

标签: jssor

我根据页面上的说明在我的WordPress中(在自定义帖子类型的模板中)嵌入了Jssor滑块(带有垂直缩略图的图库):

http://www.jssor.com/development/embed-jssor-slider-into-blogger-post.html

我想:

  1. 删除自动播放
  2. 只有一种转换类型(淡入淡出)并删除所有其他类型 (旋转,缩放等)
  3. 你能帮我吗?

1 个答案:

答案 0 :(得分:0)

jssor_slider1_starter = function (containerId) {

    var _SlideshowTransitions = [
    //Fade
    { $Duration: 1200, $Opacity: 2 }
    ];

    var options = {
        $SlideshowOptions: {                                //[Optional] Options to specify and enable slideshow or not
            $Class: $JssorSlideshowRunner$,                 //[Required] Class to create instance of slideshow
            $Transitions: _SlideshowTransitions,            //[Required] An array of slideshow transitions to play slideshow
            $TransitionsOrder: 1,                           //[Optional] The way to choose transition to play slide, 1 Sequence, 0 Random
            $ShowLink: true                                    //[Optional] Whether to bring slide link on top of the slider when slideshow is running, default value is false
        }
    };
    var jssor_slider1 = new $JssorSlider$(containerId, options);
};

参考:demos-no-jquery / simple-fade-slideshow.source.html