View Full Version : Ultimate Fade-in slideshow (v2.4)

12-12-2010, 01:35 PM
1) Problem Ultimate Fade-in slideshow (v2.4)

2) http://www.robciucionut.info/1

3) Slideshow.js file I created, I implemented the code but do not know how to display the downloaded. I do not know why. Please help me.


4) http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

or, ATTACHED BELOW (see #3 in guidelines below):

12-12-2010, 03:26 PM
That's actually version 1.51 of the slideshow. To get it working requires two things:

In the js/slideshow.js file, the paths to the images are wrong. These should be relative to the page that is using the script, not to the script. Change this:

var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["../imgs/1.png", "", ""]
fadeimages[1]=["../imgs/2.png", "", ""]
fadeimages[2]=["../imgs/3.png", "", ""]
fadeimages[3]=["../imgs/4.png", "", ""]
fadeimages[4]=["../imgs/5.png", "", ""]
fadeimages[5]=["../imgs/6.png", "", ""]
fadeimages[6]=["../imgs/7.png", "", ""]


var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["imgs/1.png", "", ""]
fadeimages[1]=["imgs/2.png", "", ""]
fadeimages[2]=["imgs/3.png", "", ""]
fadeimages[3]=["imgs/4.png", "", ""]
fadeimages[4]=["imgs/5.png", "", ""]
fadeimages[5]=["imgs/6.png", "", ""]
fadeimages[6]=["imgs/7.png", "", ""]

If there's ever any question, the absolute paths may be used.

In the style.css file, this rule at the beginning:

* {
margin: 0px;
height: 0px;

is causing some important part of the slideshow to disappear. It's probably a typo anyway, change it to:

* {
margin: 0px;
padding: 0px;

There may still be other problems, but taking care of those two things will get it working.

Also, where you have on the page:

<script type="text/javascript" src="js/slideshow.js"></script>

In order to follow Dynamic Drive's Terms of Use, that needs to be:

<script type="text/javascript" src="js/slideshow.js">

* Ultimate Fade-In Slideshow (v1.51): (c) Dynamic Drive (http://www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for this script and 100s more.


See Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice.

12-13-2010, 04:12 PM
Thanks very much for your help. The problem was solved.