Quote:
Originally Posted by chrishirst
xoxo is the array of image names
to have two random images
just call the randomiser twice
var img1 = pickRandom(ic);
var img2 = pickRandom(ic);
then show the image
SRC="'+xoxo[img1]+'"
SRC="'+xoxo[img2]+'"
|
Chris, thanks for the help, but I still don't quite understand.
If I replace the very last line of code with this:
var img1 = pickRandom(ic);
var img2 = pickRandom(ic);
then all of the images are still named x0x0, so it would be confused?
What I need to do is call two separate sets of images, one for each call.
Could you maybe add this code into the main file, so I can see how this would work?
|