events

This object property is about to describe the events.

This object property is optional.

Sub-properties:

beforeInitialize
Required: no Type: function Default: null Version: 1.2 +
A function is called before the slider is created.
afterInitialize
Required: no Type: function Default: null Version: 1.2 +
A function is called after the slider is created.
beforeSlide
Required: no Type: function Default: null Version: 1.2 +
A function is called on sliding start.
afterSlideStart
Required: no Type: function Default: null Version: 1.2 +
A function is called after sliding is just started.
beforeSlideEnd
Required: no Type: function Default: null Version: 1.2 +
A function is called before sliding is just ended.
afterSlide
Required: no Type: function Default: null Version: 1.2 +
A function is called on sliding end.
beforeMessageChange
Required: no Type: function Default: null Version: 1.2 +
A function is called before message is changed.
afterMessageChange
Required: no Type: function Default: null Version: 1.2 +
A function is called after message is changed.
start
Required: no Type: function Default: null Version: 1.2 +
A function is called on player "start".
stop
Required: no Type: function Default: null Version: 1.2 +
A function is called on player "stop".
next
Required: no Type: function Default: null Version: 1.2 +
A function is called on player "next".
prev
Required: no Type: function Default: null Version: 1.2 +
A function is called on player "previous".
imageClick
Required: no Type: function Default: null Version: 1.2 +
A function is called on image click.
messageClick
Required: no Type: function Default: null Version: 1.2 +
A function is called on message click.

Examples

Handle the moment when it starts and ends sliding.

JavaScript
events: {
    beforeSlide: function(slider) {
        console.log("sliding picture number " + slider.currentImage);
    },
    afterSlide: function() {
        console.log("not sliding");
    }
}