$ ('. Items '). On (' MoveEnd ', function (e) {
if (E.startx < E.pagex) {
$ (window). Trigger (' slidermoveleft ');
}else{
$ (window). Trigger (' slidermoveright ');
}
});
$ ('. Arrows. Left IMG '). On (' click ', Function (event) {
$ (window). Trigger (' slidermoveleft ');
});
$ (window). On (' Slidermoveleft ', function (event) {
var left = parseint ($ ('. Items ul '). CSS (' left ')) + $ ('. Items ul li '). Outerwidth ();
if (left> 0) return;
$ ('. Items ul '). Animate ({Left:left}, 200);
});
$ (window). On (' Slidermoveright ', function (event) {
var left = parseint ($ ('. Items ul '). CSS (' left '))-$ ('. Items ul li '). Outerwidth ();
if (left< ('. Items ul li '). Outerwidth ()) * * ($ ('. Items ul li '). length-1)) return;
$ ('. Items ul '). Animate ({Left:left}, 200);
});
$ ('. Arrows. Right img '). On (' click ', Function (event) {
$ (window). Trigger (' slidermoveright ');
});
Easy-to-use slider supports touch