1 - include jQuery in the project ( this wasnt include on the fiddle) - make sure the js is run on document ready
2 - amend the html as below :
<div id="scrollContainer">
<div id="content" style="white-space:nowrap; padding-left:600px;">134 1234 1234 12355 134 1234 1234 12355 134 1234 1234 12355 134 1234 1234 12355 134 1234 1234 12355 134 1234 1234 12355 134 1234 1234 12355 134 1234 1234 12355 134 1234 1234 12355</div>
</div>
3 - use this js:
var $container = $("#scrollContainer");
var $content = $("#content");
containerWidth = $container.width();
contentWidth = $content.outerWidth();
contentLeft = 0;
scrollLeft = 0;
setInterval(function() {
if (scrollLeft > contentWidth + containerWidth)
scrollLeft = 0;
$container.scrollLeft(scrollLeft++);
}, 20);
It worked fine for me after that on your jsfiddle