User:KeybladeSpyMaster/common.js

function changeImg(imgNumber)  { var myImages = ["https://lh4.googleusercontent.com/-TYRJvBBdLlo/U8gItOAyNjI/AAAAAAAAARA/y2FlZ1SDf2I/s155-no/Wiki+Logo+KHHD25+%2528ver3%2529.png", "https://lh5.googleusercontent.com/-07c8LjWfkIA/U8gItIfbx9I/AAAAAAAAAQ8/Tr--sYbG00g/s155-no/Wiki+Logo+KHHD25+%2528ver2%2529.png", "https://lh5.googleusercontent.com/-24_11pUo1EA/U7SX-Zf8j2I/AAAAAAAAANE/iyhPKN5Knck/s155-no/Kingdom+Hearts+Wiki+Main+Logo.png", "https://lh4.googleusercontent.com/-ziwpYa3MhLU/U8gKZ1CHPaI/AAAAAAAAARg/eje3jKlJqZg/s155-no/Wiki+Logo+KHHD25+%2528ver4%2529.png"]; var imgShown = document.getElementById('p-logo').style.backgroundImage; var newImgNumber =Math.floor(Math.random*myImages.length); document.getElementById('p-logo').style.backgroundImage = 'url('+myImages[newImgNumber]+')'; } window.onload=changeImg;