Random starting slideshow

Someone can help me to do a slideshow on my div background ? slideshow need to start with a random image from 20 slider images from the folder. Is there any solution for that ? I am very new in web design, so kindly help ?? my site link given below


Randomize Resizeable Background Images


I have been asked to create a login screen with two effects:
resizeable image (image that stretches to always fill the screen)
randomized background images

I have successfully coded the stretch-able background image with:


img.bg {
height: auto;
left: 0;
min-height: 100%;
min-width: 1024px;
position: fixed;
top: 0;
width: 100%;

However, I can't figure out how to also randomize the background image as most methods use php.

Syndicate content