The following works:
The problem with your original code was you are calling scrollticker()
by passing a string to setInterval
, where you should just pass the function name and treat it as a variable:
lefttime = setInterval(scrollticker, 50);
instead of
lefttime = setInterval("scrollticker()", 50);