View Full Version : Conveyor Script

03-10-2008, 05:38 PM
1) Conveyor Script

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

3) I'm very new at this and don't know script language that well and I need help with adding the images to the conveyor belt script. The script runs fine on the page, but I just don't know how to add the images to the script. All I'm getting are little boxes with a red X and I can't figure out where I need to add the image script and what script I need to insert for the images to work correctly. I can see the HTML coding, but when I try different things, it doesn't work. I would appreciate any help. Thank you.

03-10-2008, 06:01 PM
leftrightslide[0]='<a href="http://"><img src="you_image.JPG" border=1></a>'
leftrightslide[1]='<a href="http://"><img src="you_image.JPG" border=1></a>'
leftrightslide[2]='<a href="http://"><img src="you_image.JPG" border=1></a>'
leftrightslide[3]='<a href="http://"><img src="you_image.JPG" border=1></a>'
leftrightslide[4]='<a href="http://"><img src="you_image.JPG" border=1></a>'

If the images are not in the same folder as the webpage, you need to give it a path, such as: "MyFolder/My_image.JPG"
The paths are case sensitive, so image.jpg and Image.JPG are not the same paths.

03-11-2008, 12:44 AM
Thank you so much Jas. I appreciate you taking the time to explain it. That was the problem. Thanks again

03-11-2008, 01:37 AM
I have the slideshow working great; however, do you know how to center the conveyor belt? I've tried inserting a table, but it won't work. It doesn't need to be in a table, I'd just like it centered and not sitting on the left side of the page. Thanks again.

03-11-2008, 03:17 AM
The reason it won't center is because it is absolutely positioned. In order to fix that, you need to position it inside of a relatively positioned div. Perhaps something like:

<div style="position:relative;width:300px;margin:auto;">
<!--Your Code Here//-->
Just a shot in the dark-- I don't really know how to best accommodate the position of this script, but I imagine I'm close ;).