$(document).ready(function() { function bewegunglinks() { $("#bewegung").animate({left: "-=200"}, 2500, "swing", bewegungrechts); } function bewegungrechts() { $("#bewegung").animate({left: "+=200"}, 2500, "swing", bewegunglinks); } bewegungrechts(); });
<div id="bewegung" style="position:absolute;"><img src="http://unofficialwsx5.de/index.php?page=Attachment&attachmentID=1530" width="993" height="63" alt="Lineal" /></div>