resinpot
11-04-2011, 03:22 AM
How can I display a different background image every time my page loads? These images will be wider/taller than the viewing area when being viewed with smaller screen resolutions, so I need the images to be centered vertically/horizontally across the browser window, with the center of the images being in the center of the viewing area, no matter which screen resolution the visitor has..
Normally for just a single bg image I'd use:
body
{
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
}
But how can I achieve this same effect for multiple, randomly picked, bg images?
Normally for just a single bg image I'd use:
body
{
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
}
But how can I achieve this same effect for multiple, randomly picked, bg images?