PDA

View Full Version : Conveyor Belt slideshow script Help



dobbin
04-28-2008, 09:15 PM
1) Script Title: Conveyor Belt slideshow script

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

3) Describe problem: How can you add a link to this image in this script?


//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
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>'

Nile
04-29-2008, 02:44 AM
//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
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 the highlighted to your URLs.

dobbin
04-29-2008, 03:41 PM
Hey thanks nile but it is not working please check if this code below is right?

leftrightslide[0]='<a href="<a href="../Team Profiles/Connor Dobbin.html"></a>"><img src="../../images/Team page pictures/Connor Dobbin/Connor 1 Thumb.gif/a>

Nile
04-29-2008, 08:59 PM
No, the location. You put the whole link(<a href>). You only put the location.

jscheuer1
04-30-2008, 04:51 AM
This has 'garbage' (highlighted red) in it, and is missing a character at the end:


leftrightslide[0]='<a href="<a href="../Team Profiles/Connor Dobbin.html"></a>"><img src="../../images/Team page pictures/Connor Dobbin/Connor 1 Thumb.gif/a>

but would otherwise be fine if the path to the file is correct. Use this instead:


leftrightslide[0]='<a href="../Team Profiles/Connor Dobbin.html"><img src="../../images/Team page pictures/Connor Dobbin/Connor 1 Thumb.gif</a>