You know, the JMyCarousel script you linked to is also jQuery based and free, why not use that one?
Anyways, if you want to use the DD script, I'm thinking (untested) replace in the stepcarousel.js file:
Code:
config.$leftnavbutton.bind('click', function(){ //assign nav button event handlers
stepcarousel.stepBy(config.galleryid, -config.defaultbuttons.moveby)
})
config.$rightnavbutton.bind('click', function(){ //assign nav button event handlers
stepcarousel.stepBy(config.galleryid, config.defaultbuttons.moveby)
})
with:
Code:
config.$leftnavbutton.hover(function(){ //assign nav button event handlers
$(this).data('hover', setInterval(function(){stepcarousel.stepBy(config.galleryid, -config.defaultbuttons.moveby);}, 1000));
}, function(){
clearInterval($(this).data('hover'));
})
config.$rightnavbutton.hover(function(){ //assign nav button event handlers
$(this).data('hover', setInterval(function(){stepcarousel.stepBy(config.galleryid, config.defaultbuttons.moveby);}, 1000));
}, function(){
clearInterval($(this).data('hover'));
})
Barring any typos on my part, and as long as the data construct can be used that way, it should work. If not, and you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.
Bookmarks