PDA

View Full Version : Ultimate Fade-in slideshow (v1.5) - this.theimages[picindex] has no properties



rickh
03-13-2006, 05:00 PM
Im using the Ultimate Fade-in slideshow (v1.5) script on my site at http://www.technicomesc.co.uk and get the following error...

Error: this.theimages[picindex] has no properties
Source File: http://www.technicomesc.co.uk/slideshow.js
Line: 96

This is the error shown in FF Javascript console but i'm also getting an error in IE6 which is...

Error: 'this.theimages[...].1' is null or not an object

Can anyone show me how to correct this error?

My js files are located here...
http://www.technicomesc.co.uk/slideshow.js
http://www.technicomesc.co.uk/slideshow2.js

jscheuer1
03-13-2006, 05:43 PM
Well, your second array is not defined (all of its 'entries' are for the fadimages array). I am at a loss as to what you are trying to do however. My best guess is that you just want one slide show, the one that is showing. If that is the case, remove this:


new fadeshow(fadeimages2, 100, 75, 1, 4000, 0)

from slideshow2.js

That's all you need to do but you can also get rid of this:


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]=["dooraccess.gif", "door_access.shtml", "_new", "Door Access"] //plain image syntax
fadeimages[1]=["dooraccess2.gif", "door_access.shtml", "_new", "Door Access"] //image with link syntax
fadeimages[2]=["house.gif", "intruder_alarms.shtml", "_new", "Intruder Alarms"] //image with link and target syntax
fadeimages[3]=["alarm.gif", "intruder_alarms.shtml", "_new", "Intruder Alarms"] //image with link and target syntax
fadeimages[4]=["keypad.gif", "intruder_alarms.shtml", "_new", "Intruder Alarms"] //image with link and target syntax

from slideshow.js

rickh
03-13-2006, 08:00 PM
Thanks John that worked. Your correct i only wanted to show the one slideshow. I guess my error was in not removing the code for the second array from the example?

Thanks again, much appreciated.

Rick

jscheuer1
03-13-2006, 08:05 PM
Thanks John that worked. Your correct i only wanted to show the one slideshow. I guess my error was in not removing the code for the second array from the example?

Thanks again, much appreciated.

Rick

You got it! You're welcome.