Ok, war einfach nur blind vv;
Die variable pos wird jedes mal, wenn ich die funktion abrufe auf 0 zurückgesetzt.
So funktioniert es wunderbar :)
var pos = 0;
function afunction(){
jQuery(document).ready(function(){
var avar = window.setInterval("afunction()", 10);
});
if(pos < 1800) {
pos += 1;
jQuery('img.thisone').css('left', pos);
} else {
pos = 0;
jQuery('img.thisone').css('left', pos);
}
}
Trotzdem danke!