Download image slideshow II

Demo

Put this into your <HEAD> section

Put this into your <BODY> section

Configuration

You add images to the slideshow by use of standard HTML. Example:
<div id="imageSlideshowHolder">
  <img src="images/image1.jpg">  
  <img src="images/image2.jpg">  
  <img src="images/image3.jpg">  
</div>

First of all, you have the <div id="imageSlideshowHolder">, which is the elements that holds all the images in the slideshow. Then, we use standard <IMG> tags for the images. As you can see, this slideshow contain 3 images, image1.jpg, image2.jpg and image3.jpg.

You also have 3 javascript variables available which you could modify as you need:
var slideshow2_noFading = false; // No fade effect?
var slideshow2_timeBetweenSlides = 1500; // Time between images(1000 = 1 sec)
var slideshow2_fadingSpeed = 20; // Speed of fading(Higher = slower)

These controls the behaviour of the slideshow. You can play with them to see how they works.

The size and background color of the entire slideshow is set by CSS. Example:
  #imageSlideshowHolder{
    width:600px;
    height:450px;
    background-color:#000;
    border:3px solid #317082;
    position:relative;  /* Never change this value */
    
  }
  .imageInGallery{    
    width:600px;
    height:450px;
    background-color:#000;
    
    /* Never change these 3 value */
    left:0px;
    top:0px;
    position:absolute;  
  }

Here, width is set to 600 pixels, height to 450 pixels and background color to black(#000). As you also can see, you have to set these values 2 places.

Comments

Post your comment

Don't have an avatar? Create one at Gravatar.com.

Confirmation code:

Go to cbolson.com


About/Contact | A good idea? | Submit a script | Privacy notice
© 2005 - 2024 dhtmlgoodies.com