User:Spartacus/nimbus.js

/*** Randomiser: header ***/

function randomBack { var opts = [ 'http://www.halopedian.com/images/a/a0/Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110825162728!Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110825162527!Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110825154206!Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110716172439!Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110716172307!Headertest.jpg', 'http://www.halopedian.com/images/e/e4/HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052735!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052645!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052619!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052551!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052527!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052506!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052440!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052419!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052353!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052329!HalopediaBG.jpg', 'http://www.halopedian.com/images/c/ce/BGHeadertest2.jpg', 'http://www.halopedian.com/images/a/a5/BGHeadertest.jpg', 'http://www.halopedian.com/images/4/4c/BGHeadertestMOD.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052440!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052506!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052527!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052619!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052619!HalopediaBG.jpg', 'http://www.halopedian.com/images/archive/e/e4/20110831052645!HalopediaBG.jpg', 'http://www.halopedian.com/images/e/e4/HalopediaBG.jpg', ];		$('body').css('background-image','url(' + opts[Math.floor(opts.length*Math.random)] + ')'); } $(randomBack);

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

function randomLogo { var opts2 = [ 'http://www.halopedian.com/images/halopedia.png', 'http://www.halopedian.com/images/d/d4/H4pedia3.png', 'http://www.halopedian.com/images/0/0b/H4pedia2.png', 'http://www.halopedian.com/images/f/fa/H4pedia4.png', 'http://www.halopedian.com/images/3/3c/H4pedia.png', ];	$('#site-logo a').css('background-image','url(' + opts2[Math.floor(opts2.length*Math.random)] + ')'); } $(randomLogo);