PDA

View Full Version : getting Drop-in to work



partners
04-01-2009, 08:15 PM
1) Script Title: Drop In slide show

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

3) Describe problem: I am new to this java script so sorry. I have pasted the script in and it is not loading the images.

I'm also not sure what to do with this:

(The code references an external .js file, which you should download below:
* dropinslideshow.js) When I click on this link it just open up code?

I've been successful with Ultimate Fade-in slide show but it took a while

1. Where/how do I tell drop-in to go to get images and which ones..... likefad-in?
2. The reason I am using this drop-in is so that I can run two slide shows on one page is this do-able?
3. Once I paste the code am I going to chnge any of it if so which lines of code do I change to get my images?

I would paste the code but I don't understand this (If your post includes code, wrap it around using the [CODE] tag for multi-line code, and the [ICODE] tag for inline code that's part of a sentence. )

Thanks
Eric

ddadmin
04-02-2009, 12:36 AM
The code references an external .js file, which you should download below:
* dropinslideshow.js) When I click on this link it just open up code?

That's normal. To actually save the file, don't left click it, and Right click it, and select "Save As" to save it. Don't forget to upload the file to your server.

With regards to Ultimate Fade-in slide show, the path to the images are all specified near the top of the script, in the following chunk:


var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax

var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages2[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages2[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax

The paths to the images can be relative or absolute, though use absolute if you're not sure.