How do I do this?
$('#forward').mouseenter(
function() {
$("#scroller").trigger("slideTo", [1, "next"]);
}
);
$('#backward').mouseenter(
function() {
$("#scroller").trigger("slideTo", [1, "back"]);
}
);
It is supposed to keep scrolling while my mouse is on top of the button and will just stop scrolling when my mouse is outside the button. Apparently It will just scroll one time and then stop. I need the button to be hover activated so that users wouldn’t keep clicking the button.
reference: http://caroufredsel.frebsite.nl/code-examples/custom-events.php
I believe you are looking for this http://jsfiddle.net/DNcAS/3/
For a linear scroll modify the configuration options as http://jsfiddle.net/DNcAS/4/
Or you can replace
mouseenterandmouseleavebyhoverhttp://jsfiddle.net/DNcAS/5/ps: even shorter version http://jsfiddle.net/DNcAS/6/