The error is in the code:
Code:
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[0].src=this.theimages[0][0] // PRELOAD FIRST IMAGE WITHIN ARRAY
this.postimages[1].src=this.theimages[1][0] // PRELOAD SECOND IMAGE WITHIN ARRAY
}
It should actuallly be:
Code:
for (p=0;p<theimages.length;p++)
this.postimages[p]=new Image()
this.postimages[0].src=this.theimages[0][0] // PRELOAD FIRST IMAGE WITHIN ARRAY
this.postimages[1].src=this.theimages[1][0] // PRELOAD SECOND IMAGE WITHIN ARRAY
Notice the removal of the outer curly brackets. They are not supposed to be there, as is the case with the code I posted in the other thread.
Bookmarks