var how_many_ads = 10 
var now = new Date() 
var sec = now.getSeconds() 
var ad = sec % how_many_ads; 
ad +=1; 

document.write('<body style=" background:url(upload/' + ad + '.jpg) no-repeat">');
