There are currently 0 stubs. You can help us by expanding these articles!
Difference between revisions of "MediaWiki:Common.js"
From Rare Wiki
Jump to navigationJump to search
(alternat) |
(added banjo and kazooie) |
||
Line 1: | Line 1: | ||
$(function() { | $(function() { | ||
var bgImages = ['/w/images/b/b1/Kameoalpha.png', '/w/images/c/c3/Fergyalpha.png']; | var bgImages = ['/w/images/b/b1/Kameoalpha.png', '/w/images/c/c3/Fergyalpha.png', '/w/images/2/22/Banjoalpha.png']; | ||
$('div#content').css('background-image', 'url(' + bgImages[Math.floor(Math.random() * bgImages.length)] + ')'); | $('div#content').css('background-image', 'url(' + bgImages[Math.floor(Math.random() * bgImages.length)] + ')'); | ||
}); | }); |