var bg= ""; if(screen.width < 801) bg=""; else if(screen.width < 1025) bg=""; else if(screen.width < 1281) bg=""; else if(screen.width < 1601) bg=""; document.body.style.backgroundImage="url("+bg+")";