// Geschwindigkeit in Millisekunden
var scrollSpeed = 100;
var current = 0;
// Festlegen der Scroll-Richtung h=Rechts nach links/w=unten nach oben/
var direction = 'h';
function bgscroll(){
// 1 Pixel der Animationsabstände
current -= 1;
// Festlegen der CSS Einstellungen
$('body.clouds').css("backgroundPosition", (direction == 'h') ? current+"px 0" : "0 " + current+"px");
}
setInterval("bgscroll()", scrollSpeed);
