PDA

View Full Version : Image Slide Show



Fatima Abdul
10-18-2006, 03:55 PM
1) Script Title: Image slide show

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

3) Describe problem: can anyone tell me if i want to use any banner of any website then how i will put the link in this script or describe this script

ddadmin
10-18-2006, 10:34 PM
Do you mean you wish to use this script to rotate your banner ads? The portion of the script to input your images/urls is:


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>'
"
"

I would assume you'd just substitute the above code with your banner's image and link code, assuming it's a simple image banner.

Fatima Abdul
10-19-2006, 09:42 AM
yes u r right but here i will put that link where my banner will be located or the link of a website like http://thesmsworld.sitesled.com/index.htm or banner location at my ftp server
Do you mean you wish to use this script to rotate your banner ads? The portion of the script to input your images/urls is:


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>'
"
"

I would assume you'd just substitute the above code with your banner's image and link code, assuming it's a simple image banner.

codeexploiter
10-19-2006, 10:23 AM
leftrightslide[0]='<a href="http://www.dynamicdrive.com"><img src="dynamicbook1.gif" border=1></a>'
leftrightslide[1]='<a href="http://www.javascriptkit.com"><img src="dynamicbook2.gif" border=1></a>'


In the above two lines we are specifying to image file and the associated hyperlinks.

If you look at the <a href="http://www.dynamicdrive.com"> here we are creating a link that points to dynamicdrive website and as a label for this link we are using a image which is represented using <img src="dynamicbook1.gif" border=1>. Here the image name is dynamicbook1.gif which is stored in the same location where your web page is stored (The page in which you are trying to incorporate this feature). If both stored in the same location you can refer them without using any path information.

Like the above one the next line of code is used to point to another site using another image.

I hope you can sort the things now