PDA

View Full Version : Array Order Out of Whack?



dr.who53
01-03-2007, 06:44 PM
Ultimate Fade-in slideshow

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

Inserted script and everything works fine...however...the images are not appearing in the order I have placed them within the array? I have even attempted to re-arrange the images yet they still do not appear in the order they appear within the array? What have I done wrong? P.S. I see there is a line within the script under 'no need to edit' that reads: if (typeof displayorder!="undefined").....is that the problem?

Appreciate any help!
Thanks :)

Twey
01-03-2007, 08:55 PM
It's a feature, not a problem. Read the documentation: there's an optional final argument to the constructor to set the display order to random. Remove it, and the problem will go away.

dr.who53
01-03-2007, 09:24 PM
Thanks...but I removed "R" (optional random order) from script and now nothing appears (no slideshow or images) ?

Twey
01-03-2007, 09:40 PM
Perhaps you left the comma in? It's hard to tell without seeing your page.

dr.who53
01-03-2007, 10:04 PM
That did it!!...thanks and Happy New Year!!