var banner = new Array(); banner.push('https://i.imgur.com/vx6GWOJ.png'); banner.push('https://i.imgur.com/WbpLegE.png'); banner.push('http://i57.tinypic.com/33kxedw.jpg'); document.getElementById('logo').firstChild.src= banner[Math.floor(Math.random()*banner.length)];