How to access jcarousel properties
Sorry if this is a stupid question, but I'm quite new to javascript and jQuery. Being used to Perl, Bash and the like, these javascript objects confuse me.
How can I read and set the animation property of my carousel?
I have tried something like this:
jQuery('#ij-carousel').jcarousel({
animation: 2500,
//[...] initCallback: function(jc, state) { if (state == 'init') { $('div.jcarousel-next').bind('click', function() { speed = jc.animation; //save auto-animation speed
// jc.animation = 'fast';
jc.next(); // jc.animation = speed; //restore auto speed
return false;
});
jc.play();
}
});
(Basically, I want to have slow auto-scroll animation, but a fast animation when the Prev/Next buttons are deliberately clicked).
Thanks for any help...