parameters - Access param in the callback of jQuery Nivo Slider plugin -


Hello,

I am using the Nivo slider, a jQuery plugin that can create slideshow Allows That's right but I have only a small problem. Each image has an ID (or any other element like rel for example) and I give this parameter in Nivo's callback function (first change: function () {}) Would like to

But in the problem, change callback before this, I can not find any absolute, so I do not know that the witch image has changed.

Thank you!

"post-text" itemprop = "text">

You can use the nivo slider (where 'slider' is the idler of the slider) This function by using the object:

  First changes: function (element) {console.log ($ ('# slider'). Data ('nivo: vars')); // nivo vars console.log (get $ ('# slider'). Data ('nivo: vars'). CurrentSlide); // Get the current slide}  

You can see the objects in the console or Chrome's console log.


Comments