Bouncing Slideshow

v1.0 - May 14, 2006
bouncingslideshow.zip (117k)


Bouncing Slideshow is a Dynamic HTML script that adds a bouncing picture slideshow effect to your document. The picture moves around at different angles bouncing back and forth off the edges of the browser window. The new pictures in the slideshow sequence appear as the picture hits the left and right hand sides of the window.

   Features:

  • Simple installation.
  • Automatic preloading of images.

* This script requires the Dynamic HTML scripting library dynLib. For more information about dynLib please visit the dynLib website.

Installation

1. Upload the files dynlib.js & bouncingslideshow.js then link them to your document as JavaScript include files. Add the following code between the <head> & </head> tags:

<script language="JavaScript" src="dynlib.js"></script>
<script language="JavaScript" src="bouncingslideshow.js"></script>

2. Upload all of the pictures to be used in the slideshow. These are defined in the confuration section of the file bouncingslideshow.js.

Configuration

The bouncingSlideshow.pictureSrc array holds the file names of the pictures used in the slideshow. The slideshow will continuously loop through these pictures in the order listed. If the pictures are stored in a different folder, make sure that the bouncingSlideshow.picturePath string is defined using correct syntax. eg. '/pictures/'.

Source Code

  bouncingslideshow.js (5k)

Notes

  • This scripts attempts to preload all images used in the slideshow. If the picture file sizes are too big, the images may not load in time and the slideshow effect will not work properly.

Bouncing Slideshow by Lloyd Hassell

Website: lloydhassell.brinkster.net
Email: lloydhassell@hotmail.com