User:Subtank/nimbus.js

function randomBack { var opts = [ 'http://www.halopedian.com/images/archive/a/a0/20110715123155!Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110716172307!Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110716172439!Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110825154206!Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110825162527!Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110825162728!Headertest.jpg', 'http://www.halopedian.com/images/archive/a/a0/20110825162728!Headertest.jpg', ];	/*if (wgPageName=='Main_Page') $('body').css('background-image','url(' + opts[0] + ')'); else*/ $('body').css('background-image','url(' + opts[Math.floor(opts.length*Math.random)] + ')'); } $(randomBack);