prova con

codice:
document.body.style.backgroundImage="url(http://..../xx.jpg)"