gibney.org : Technology : Javascript : Includes : Display Random Images


just a logo :)

search:


See as: raw | code

terms of service | imprint

gibney.org
is powered by m1d1





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