User:To3cutt3r/jadImage.js



/* Random image slideshow- By Tyler Clarke (tyler@ihatecoffee.com) For this script and more, visit http://www.javascriptkit.com

var delay=1000 //set delay in miliseconds var curindex=0

var randomimages=new Array

randomimages[0]="http://runescape.wikia.com/wiki/File:Runescapehd_monsters_tztokjad.gif" randomimages[1]="http://runescape.wikia.com/wiki/File:Runescapehd_monsters_tztokjad.gif"

var preload=new Array

for (n=0;n')

function rotateimage {

if (curindex==(tempindex=Math.floor(Math.random*(randomimages.length)))){ curindex=curindex==0? 1 : curindex-1 } else curindex=tempindex

document.images.defaultimage.src=randomimages[curindex] }

setInterval("rotateimage",delay)

This free script provided by

JavaScript Kit