User:KeybladeSpyMaster/common.js

/* function changeImg(imgNumber)  { var myImages = ["https://lh5.googleusercontent.com/-24_11pUo1EA/U7SX-Zf8j2I/AAAAAAAAANE/iyhPKN5Knck/s155-no/Kingdom+Hearts+Wiki+Main+Logo.png", "https://lh5.googleusercontent.com/-07c8LjWfkIA/U8gItIfbx9I/AAAAAAAAAQ8/Tr--sYbG00g/s155-no/Wiki+Logo+KHHD25+%2528ver2%2529.png", "https://lh6.googleusercontent.com/-Cm0I94A6hEA/U8mIilDHRVI/AAAAAAAAAS0/NzHM4B4zoqo/s155-no/Wiki+Logo+KHHD25+%2528ver5%2529.png", "https://lh3.googleusercontent.com/-6NXA6A-Q21c/U8mIin5605I/AAAAAAAAAS0/Zbwow6gjnBE/s155-no/Wiki+Logo+KHHD25+%2528ver6%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;

if (document.getElementById) { window.onload = swap }; function swap { var numimages=4; rndimg = new Array('/images/b/bc/Wiki.png', "https://lh5.googleusercontent.com/-07c8LjWfkIA/U8gItIfbx9I/AAAAAAAAAQ8/Tr--sYbG00g/s155-no/Wiki+Logo+KHHD25+%2528ver2%2529.png", "https://lh6.googleusercontent.com/-Cm0I94A6hEA/U8mIilDHRVI/AAAAAAAAAS0/NzHM4B4zoqo/s155-no/Wiki+Logo+KHHD25+%2528ver5%2529.png", "https://lh3.googleusercontent.com/-6NXA6A-Q21c/U8mIin5605I/AAAAAAAAAS0/Zbwow6gjnBE/s155-no/Wiki+Logo+KHHD25+%2528ver6%2529.png"); x=(Math.floor(Math.random*numimages)); randomimage=(rndimg[x]); document.getElementById('p-logo').style.backgroundImage = "url("+ randomimage +")"; }

/* var logos = ['/images/b/bc/Wiki.png', '/images/9/97/Wiki_3.png', '/images/d/d7/Wiki_2.png']; $('#p-logo').css('background-image', 'url(' + logos[Math.floor(Math.random * logos.length)] + ')');