User:Spartacus/nimbus.js

/*** Randomiser: header ***/

function randomBack { var opts = [ 'http://www.halopedia.org/images/archive/a/a0/20110715123155!Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110716172307!Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110716172439!Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110825154206!Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110825162527!Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110825162728!Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110825162728!Headertest.jpg', 'http://www.halopedia.org/images/c/c8/MonitorChakas_-_BackgroundProposal.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/halopedia.png', 'http://www.halopedia.org/images/d/d4/H4pedia3.png', 'http://www.halopedia.org/images/f/fd/HMCCpedia1.png', 'http://www.halopedia.org/images/f/fa/H4pedia4.png', 'http://www.halopedia.org/images/3/3c/H4pedia.png', 'http://www.halopedia.org/images/4/41/Monaco.png', 'http://www.halopedia.org/images/8/89/H2Apedia3.png', 'http://www.halopedia.org/images/5/57/H2Apedia2.png', 'http://www.halopedia.org/images/1/14/H2Apedia1.png' ];	$('#site-logo a').css('background-image','url(' + opts2[Math.floor(opts2.length*Math.random)] + ')'); } $(randomLogo);