Ik heb maar wat in elkaar proberen te zetten, wat ik nodig heb. maar het werkt blijkbaar niet.
$(function() {
var max = 240;
var offset = 0;
$('body').css("background-position", "left " + "top");
function scrollbackground(){
setTimeout(function(){rechts();}, 3000);
function rechts(){
if (!(offset==max)){
offset + 1;
$('body').css("background-position", offset + "px " + "top");
setTimeout(function(){rechts();}, 100);
}
};
setTimeout(function(){links();}, 3000);
function links(){
if (!(offset==0)){
offset - 1;
$('body').css("background-position", offset + "px " + "top");
setTimeout(function(){links();}, 100);
}
};
}
});
Zou iemand hier een werkende versie van kunnen maken?:thumb:
Gr Brecht
$(function() {
var max = 240;
var offset = 0;
$('body').css("background-position", "left " + "top");
function scrollbackground(){
setTimeout(function(){rechts();}, 3000);
function rechts(){
if (!(offset==max)){
offset + 1;
$('body').css("background-position", offset + "px " + "top");
setTimeout(function(){rechts();}, 100);
}
};
setTimeout(function(){links();}, 3000);
function links(){
if (!(offset==0)){
offset - 1;
$('body').css("background-position", offset + "px " + "top");
setTimeout(function(){links();}, 100);
}
};
}
});
Zou iemand hier een werkende versie van kunnen maken?:thumb:
Gr Brecht