Still suffering from Mike's problems, here is the new code, same as the old code, it was my testing that was flawed, the code works fine.
Just after this line:
Code:
function fadepic(){
add this line:
Replace this line:
Code:
nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0
with these lines:
Code:
randimageindex=parseInt(Math.random()*fadeimages.length)
while (randimageindex==nextimageindex){
randimageindex=parseInt(Math.random()*fadeimages.length)
if (randimageindex!==nextimageindex)
break
}
nextimageindex=randimageindex
Bookmarks