Dynamic Background Image
Go to www.cgiscript.net for more free tools!

Description:
Use this code to dynamically change the background image. Much easier than some of the more confusing versions out there. Control the background image using the links on your site. Control the color using onMouseOver, onMouseOut, onClick, and a combination of all of them.
Directions:
Use the 'Grab Text' buttons to select the code within the adjacent textarea. Then use Control-C or Edit -> Copy to buffer the text for pasting into your document.
 
EXAMPLES:
Note: The example changes the table background image instead of the page background color. This is only for example purposes, the code below will work as described.
1) When mouse passes over the link.
2) When mouse moves off the link. (move mouse over then move mouse off)
3) When you click on the link.
4) When mouse passes over the link and when you take mouse off link.
5) When mouse passes over the link, when you take mouse off link, and when you click the link.

Place the code below between the <BODY> and </BODY> tags within the HTML page where you want the link to appear. Edit the link text provided to point at the page you would like to open.

Option 1: Use this to change the background color when user places mouse over the link.

Then use Control-C to copy the text into your web page.

Option 2: Use this to change the background image when user removes mouse from over the link (onMouseOut).

Then use Control-C to copy the text into your web page.

Option 3: Use this to change the background image when user clicks the link (onClick).

Then use Control-C to copy the text into your web page.

Option 4: Use this to change the background image twice, once when the user places the mouse over the link then again when the user takes the mouse off the link (onMouseOver and onMouseOut).

Then use Control-C to copy the text into your web page.

Option 5: Use this to change the background image three times, once when the user places the mouse over the link, again when the user takes the mouse off the link, and again when the user clicks on the link (onMouseOver, onMouseOut, and onClick).

Then use Control-C to copy the text into your web page.