User:Soul reaper/nimbus.js

/*** Randomiser: header ***/

function randomBack { var opts = [ 'http://www.halopedia.org/images/2/2a/H1header1.png', 'http://www.halopedia.org/images/0/03/H1header2.png', 'http://www.halopedia.org/images/2/2b/H2header1.png', 'http://www.halopedia.org/images/0/0f/H2header2.png', 'http://www.halopedia.org/images/2/23/H3header1.png', 'http://www.halopedia.org/images/c/c2/H3header2.png', 'http://www.halopedia.org/images/8/8f/H3header3.png', 'http://www.halopedia.org/images/8/8a/H3header4.png', 'http://www.halopedia.org/images/1/19/HWheader1.png', 'http://www.halopedia.org/images/a/a6/HWheader2.png', 'http://www.halopedia.org/images/9/91/HWheader3.png', 'http://www.halopedia.org/images/8/88/HWheader4.png', 'http://www.halopedia.org/images/c/cd/ODSTheader1.png', 'http://www.halopedia.org/images/e/e5/ODSTheader2.png', 'http://www.halopedia.org/images/a/a7/ODSTheader3.png', 'http://www.halopedia.org/images/9/9a/HRheader1.png', 'http://www.halopedia.org/images/2/2e/HRheader2.png', 'http://www.halopedia.org/images/5/59/HRheader3.png', 'http://www.halopedia.org/images/6/63/HRheader4.png', 'http://www.halopedia.org/images/2/2d/HRheader5.png', 'http://www.halopedia.org/images/d/d8/HRheader6.png', 'http://www.halopedia.org/images/a/a8/HCEAheader1.png', 'http://www.halopedia.org/images/2/29/HCEAheader2.png', 'http://www.halopedia.org/images/8/8f/H4header3.png', 'http://www.halopedia.org/images/3/33/H4header1.png', 'http://www.halopedia.org/images/b/be/HSAheader1.png', 'http://www.halopedia.org/images/1/18/HSAheader2.png', 'http://www.halopedia.org/images/7/73/HSAheader3.png', 'http://www.halopedia.org/images/9/90/HSAheader4.png', 'http://www.halopedia.org/images/1/16/H2Aheader2.png', 'http://www.halopedia.org/images/2/2d/H2Aheader3.png', ];		$('body').css('background-image','url(' + opts[Math.floor(opts.length*Math.random)] + ')'); } $(randomBack);

/*** Randomiser: wiki-logo ***/

function randomLogo { var opts2 = [ 'http://www.halopedia.org/images/9/95/H1pedia.png', 'http://www.halopedia.org/images/9/9b/H2pedia.png', 'http://www.halopedia.org/images/3/32/H3pedia.png', 'http://www.halopedia.org/images/0/07/HWpedia.png', 'http://www.halopedia.org/images/3/31/ODSTpedia.png', 'http://www.halopedia.org/images/6/63/REACHpedia.png', 'http://www.halopedia.org/images/1/1f/CEAHpedia.png', 'http://www.halopedia.org/images/7/7d/H4Hpedia.png', 'http://www.halopedia.org/images/f/f6/SApedia.png', 'http://www.halopedia.org/images/4/4d/HMCCpedia2.png', ];	$('#site-logo a').css('background-image','url(' + opts2[Math.floor(opts2.length*Math.random)] + ')'); } $(randomLogo);