PDA

View Full Version : Conveyor Belt Slideshow Script - number showing between slides



Jim81501
07-23-2009, 10:51 PM
1) Script Title: Conveyor Belt slideshow script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm

3) Describe problem: The problem I'm having concerns the spacing between slides in this script. I've added the links for the images and the slide show does fine with that but when I put in a number for the spacing between slides the number shows up between the slides.

This is the variable field in the script copied form the DD library:

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

When I fill it in I put a 2 between the quote marks with no spaces. I've tried it with and without the quotes with the same results. Even tried 2px but that also showed up between the slides.

I'm not sure what the author of the script intended when saying "use HTML" which may very well be the problem.

I've duplicated the problem using this code in a "clean" page with no external javascript, css, that kind of thing with no affect on the issue.

Other than this issue it is working great. Appreciate any direction you may want to give.

Here is copy of what I'm actually using:

Specify the slider's width (in pixels)
var sliderwidth="600px"
//Specify the slider's height
var sliderheight="135px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2
//configure background color:
slidebgcolor="#ffffcc"

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="demoall.html"><img src="images/menudemoallsm1.jpg" border=1></a>'
leftrightslide[1]='<a href="jakegrad.html"><img src="images/menujakegradsm1.jpg" border=1></a>'
leftrightslide[2]='<a href="essiej.html"><img src="images/menuessiejsm1.jpg" border=1></a>'
leftrightslide[3]='<a href="rizpah2.html"><img src="images/menurizpah2sm1.jpg" border=1></a>'
leftrightslide[4]='<a href="tigertennis.html"><img src="images/menutigertennissm1.jpg" border=1></a>'

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

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


Thanks, Jim

Jim81501
07-24-2009, 08:50 PM
I figured with all the javascript guru's that must frequent this site the answer would be fairly easy (and probably a user error).

Glad I could either as a question so stupid that it doesn't warrant an answer or one so hard no one can figure it out.