JSFiddle - React, Tailwind, and code Playground
by Beben Koben
HTML
<div id='imgScroll'>
<a href="http://beben-koben.blogspot.com/2011/05/kumpulan-trik-jquery-plugin.html" title="get collected of my jQuery plugin"><img src='http://4.bp.blogspot.com/-VvUTZpaReB4/Tb5Owh-ouBI/AAAAAAAAABE/Ffs6D0OI4XI/plus.jpg' style='width:300px;height:175px;position:fixed;bottom:5px;left:5px'/></a>
</div>
JavaScript
function repeatscroll() {
if ($('#imgScroll img').css('margin-left') == '0px') {
var margin = '1000px';
} else {
var margin = '0px';
}
$('#imgScroll img').animate({'margin-left': margin}, 5000, 'linear', function() {repeatscroll();});
}
$(document).ready(function() {repeatscroll();});