Make your own free website on

Scripts | JS tutorials | Advanced JS tutorials | Applets | Web Tutorials | DHTML | Forum | Freewarejava

spacer.gif (810 bytes)

Home / Free JavaScripts / Images & Music / Here

JavaScript Kit

Cut & Paste Random Background Image

Credit: JavaScript Kit

Description: A script that displays a random background image each time the document is loaded, out of three.

Example: Right behind you! To see another random background, simply reload this page.

Directions: Insert the below IN PLACE of the <body> tags (the code dynamically generates it). Change backgr1, backgr1, and backgr3 to reflect the path of the three background images you're using.

Adding more than one JavaScript to a page
Trying to get two or more scripts on your page to work concurrently? This tutorial reveals some tips on how to do so.

spacer.gif (810 bytes)

CopyRight 1997-2001 JavaScript Kit. All rights reserved

spacer.gif (810 bytes)