View Full Version : Conveyor Belt Slideshow - imagegap

04-05-2006, 04:10 PM
Script: Conveyor Belt Slideshow
URL: http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm

This is another great slideshow! :) :) :) It is especially useful when there is a need to display differing widths in the images. However, if I set the variable "imagegap" to anything other than a null value (imagegap=""), the value of imagegap itself displays in the gap area between images. Is there anyway to suppress the displaying of the imagegap value?


04-05-2006, 11:42 PM
why not

var imagegap="0"

var slideshowgap=0


04-06-2006, 12:09 AM
var imagegap=10Notice that there aren't any quotes.

04-06-2006, 02:29 AM
I've tried it with quotes, without quotes, imagegap="0". I've been unable to get rid of the imagegap display. This is a long slideshow (too long), but take a look:



04-06-2006, 04:25 AM
There are two values that control two different gaps in this script:

//Specify gap between each image (use HTML):
var imagegap=" "

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=5

The first is a string value. It represents what is shown between the images. For example if you do:

//Specify gap between each image (use HTML):
var imagegap="Bob's Uncle"

Then you get the words (string value) "Bob's Uncle" between each image. For no gap use empty quotes, without even a space:

//Specify gap between each image (use HTML):
var imagegap=""

As indicated by the comment above it, you could also use HTML, like:

//Specify gap between each image (use HTML):
var imagegap="<img src='spacer.gif'>"

But, for your purposes, I think you just want the empty quotes. Now the second variable:

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=5

Is a number. It is the pixel value between the end of one full train of images and the next. If memory serves, this is not always precise in all browsers but, has nothing to do with the gap between each individual image. It should not be quoted.

04-06-2006, 12:36 PM
:) Thanks, John. You bailed me out again. All I could think was that "imagegap" specified the width of the gap, not the content of the gap. Thanks again. :)