View Full Version : Conveyor Belt slideshow script

conveyor belt
08-08-2008, 11:16 PM
1) Script Title: Conveyor Belt slideshow script

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

3) Describe problem: Hi - I have been using the conveyor belt sideshow script for a while now and think it is fantastic - but was wondering how/where I can change the border colouring at the moment the borders around the pictures are blue but I would like to change them to white

Thanks in advance


08-09-2008, 01:27 AM
Actually, the script did'nt set any color for the border. That's the browser's default (that you are seeing) when an image is linked. Luckily, you can set a color via CSS.

Find this part in the script (border is a deprecated attribute (http://www.codehelp.co.uk/html/deprecated.html)):

leftrightslide[0]='<a href="http://"><img src="dynamicbook1.gif" border=1></a>'
leftrightslide[1]='<a href="http://"><img src="dynamicbook2.gif" border=1></a>'
leftrightslide[2]='<a href="http://"><img src="dynamicbook3.gif" border=1></a>'
leftrightslide[3]='<a href="http://"><img src="dynamicbook4.gif" border=1></a>'
leftrightslide[4]='<a href="http://"><img src="dynamicbook5.gif" border=1></a>'

Change it to:

leftrightslide[0]='<a href="http://"><img src="dynamicbook1.gif" style="border:1px solid #fff;"></a>'
leftrightslide[1]='<a href="http://"><img src="dynamicbook2.gif" style="border:1px solid #fff;"></a>'
leftrightslide[2]='<a href="http://"><img src="dynamicbook3.gif" style="border:1px solid #fff;"></a>'
leftrightslide[3]='<a href="http://"><img src="dynamicbook4.gif" style="border:1px solid #fff;"></a>'
leftrightslide[4]='<a href="http://"><img src="dynamicbook5.gif" style="border:1px solid #fff;"></a>'

Also, note that your page, without an alt attribute won't validate.

conveyor belt
08-09-2008, 03:38 AM
Hi Rangana

Thanks for that it works perfectly

Much appreciated


08-10-2008, 11:26 AM

I hope it's okay to post my question here, 'coz it's about the same script:

I would like to have my slideshow only shown once and not on "repeat". Is there a way to tell the script to stop at or after the last picture? If so, then how?