function scrollMe var left scrollMe counter offset px 0px title animat

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
function scrollMe() {
var left = (scrollMe.counter % 2 == 0) ? '-'+offset+'px' : '0px';
title.animate({
left: left
}, duration, 'linear', function() {
scrollMe();
});
scrollMe.counter++;
}