» home
» contact
» terms of use

FREE SCRIPTS
» new
» text
» image
» utility
» background
» animation
» date/time

FREE ONLINE TOOLS
» code generators
» text animator
» drawing animator
» color animator
» slideshow factory
» javascript speed test

FREE BASIC SNIPLETS
» alert box
» image: multi-rollover
» pop-up: centering
» more

FREE'N'CRAZY
» realtime death counter
» eyeQ
» fun ticker

RECOMMENDED LINKS
» www.dynamicdrive.com
» www.hotscripts.com

Free Fun JavaScript: Background Switcher Animation
This free fun JavaScript automatically rotates through a set of background-images similar to a slideshow. Add as many background-images as you like. Easy configuration of swapping-speed and background images. Crossbrowser: Internet Explorer 5x/6x/7x/8x, Firefox 2x/3x/4x, Opera 7x/8x/9x/10x, Google Chrome 3x/4x.

Demo
Sample 1
Sample 2


Configuration:

Step 1: Open your webpage. Paste the following code between the <head> and </head> tags of your webpage:



Step 2: Open your webpage. Go to to the top of the script and replace the filenames of our background-images with your own background-images (red code below):
var slideurl=new Array("bgimage1.jpg","bgimage2.jpg","bgimage3.jpg","bgimage4.jpg")
Add as many background-images as you like!

Step 3: Go to to the top of the script and configure the speed in seconds (red code below):
var slidestandstill=2