Display Random Images (Entry Nr. 280, by user 1 | edit) |
|
|
| function ge_random_images()
{
var Image;
var NextImage;
var Images;
this.showNextImage=function()
{
Image.src=Images[NextImage];
NextImage++;
if (NextImage==Images.length) NextImage=0;
var my=this;
setTimeout(function() {my.showNextImage()},1000)
}
this.setImages=function(TheImages)
{
Images=TheImages;
}
this.start=function(id)
{
Image=document.getElementById(id);
NextImage=1;
var my=this;
setTimeout(function() {my.showNextImage()},1000)
}
}
|
|
|
Create a new entry at this position
|
|
|