View Full Version : //Specify gap between each image (use HTML)???

04-27-2008, 07:02 PM
1) Script Title: Conveyor Belt slideshow script

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

3) Describe problem: I don't know how to edit this part, I want some space between images:

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


04-27-2008, 07:14 PM
You could:

1) Increase the border on the image

leftrightslide[0]='<a href="http://"><img src="dynamicbook1.gif" border=1></a>'

2) Use CSS

<style type="text/css">
a img { margin-right:5px; }

This is assuming there are no other linked images on your page. It goes between the document's head tags.

04-27-2008, 07:46 PM
Or, you could do as instructed by the script:

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

Like (for example):

//Specify gap between each image (use HTML):
var imagegap="<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>"

Any valid HTML code that will not cause a line break may be used.