How to Make the Background Image Change Randomly
First, assemble the background image files in the same directory and rename them so that they all have the same name except with different numbers appended to the end of the name. It is better if the images all have the same file extension as well (.png, .jpg, .gif).
Next, locate the following line of code somewhere between the <head> and </head> tags in the header of your page:
Now just copy and paste the following code:
The "background-attachment:fixed" command prevents the tiled image from moving when you scroll down the page. If you want the image to move when you scroll, you can erase that part.
© Had2Know 2010