User:Spartacus/nimbus.js

/*** Randomiser: header ***/

function randomBack { var opts = [ 'http://www.halopedian.com/images/a/a0/Headertest.jpg', 'http://www.halopedia.org/images/a/a0/Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110825162728!Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110825162527!Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110825154206!Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110716172439!Headertest.jpg', 'http://www.halopedia.org/images/archive/a/a0/20110716172307!Headertest.jpg', 'http://www.halopedia.org/images/5/59/Halopedia_Banner_2.jpg', 'http://www.halopedia.org/images/5/5d/Banner_test_1_v2.jpg', 'http://www.halopedia.org/images/c/c0/Halopedia_Monaco02.png', ];		$('body').css('background-image','url(' + opts[Math.floor(opts.length*Math.random)] + ')'); } $(randomBack);