Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 使用API(在Wordpress上)自定义图层滑动导航_Jquery_Wordpress - Fatal编程技术网

Jquery 使用API(在Wordpress上)自定义图层滑动导航

Jquery 使用API(在Wordpress上)自定义图层滑动导航,jquery,wordpress,Jquery,Wordpress,我正在尝试使用API为LayerSlider创建自己的导航。 这是因为我想要的图标和文本可以通过后端轻松更新 layerslider文档建议我使用以下代码行: <a href="javascript:void(0);" onclick="$('#layerslider').layerSlider(2);">Text & Icon</a> $('#slider').layerSlider({ ... global settings ... cbInit

我正在尝试使用API为LayerSlider创建自己的导航。 这是因为我想要的图标和文本可以通过后端轻松更新

layerslider文档建议我使用以下代码行:

<a href="javascript:void(0);" onclick="$('#layerslider').layerSlider(2);">Text & Icon</a>
$('#slider').layerSlider({

...

global settings

...

cbInit      : function(element){},  // Calling when LayerSlider loads, returns the LayerSlider jQuery object of the LayerSlider container HTML element.
cbStart     : function(data){},     // Calling when you click the slideshow start button, returns the LayerSlider Data object.
cbStop      : function(data){},     // Calling when click the slideshow stop / pause button, returns the LayerSlider Data object.
cbPause     : function(data){},     // Calling when slideshow pauses (if pauseOnHover is true), returns the LayerSlider Data object.
cbAnimStart : function(data){},     // Calling when animation starts, returns the LayerSlider Data object.
cbAnimStop  : function(data){},     // Calling when the animation of current layer ends, but the sublayers of this layer still may be animating, returns the LayerSlider Data object.
cbPrev      : function(data){},     // Calling when you click the previous button (or if you use keyboard or touch navigation), returns the LayerSlider Data object.
cbNext      : function(data){},     // Calling when you click the next button (or if you use keyboard or touch navigation), returns the LayerSlider Data object.

});