
Originally Posted by
Kehfera
I am working with the Ultimate fade-in script and my incidences of the code are stacking on top of each other no matter how I code the script into my page.
Nope, that's not the problem. You have only defined one array:
Code:
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["../images/ss/1-1.gif", "", ""]
fadeimages[1]=["../images/ss/1-2.gif", "", ""]
fadeimages[2]=["../images/ss/1-3.gif", "", ""]
fadeimages[3]=["../images/ss/1-4.gif", "", ""]
You declare other arrays but you forgot to include the updated name of the array in its items declarations, ex:
Code:
var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["../images/ss/2-1.gif", "", ""]
fadeimages[1]=["../images/ss/2-2.gif", "", ""]
fadeimages[2]=["../images/ss/2-3.gif", "", ""]
fadeimages[3]=["../images/ss/2-4.gif", "", ""]
Each subsequent declaration of items overwrites the previous, The second array should look like so:
Code:
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]=["../images/ss/2-1.gif", "", ""]
fadeimages2[1]=["../images/ss/2-2.gif", "", ""]
fadeimages2[2]=["../images/ss/2-3.gif", "", ""]
fadeimages2[3]=["../images/ss/2-4.gif", "", ""]
so that it includes the full name of the array in its items declarations. The others should do this as well (each with their actual names in their items declarations). Then, if there are no other errors, it will work out.
Bookmarks