I am implementing this Simple Image Randomizer to load random images from a list for my body.
var images = ['image1.jpg', 'image2.jpg', 'image3.jpg', 'image4.jpg', 'image5.jpg'];
$('body').css({'background-image': 'url(images/' + images[Math.floor(Math.random() * images.length)] + ')'});
Problem is, each of the images is prepared to sit in one specific corner of the screen. How would I add a corresponding list, which stores the background styles for each image, and how would I reach this over to the script? I also tried to enhance the script manually to sth like
$('body').css({'background': 'url(images/' + images[Math.floor(Math.random() * images.length)] + ')' + "no-repeat fixed top left});
..but that also seems not to work. And it would only be half the battle.