Categories:

Home / Free JavaScripts / Image Slideshows & Galleries / Here

Cut & Paste Random Image Slideshow

Credit: Tyler Clarke

Description: Unlike most image slideshows which display images in sequential order, this one randomly picks its image to show each time.

Example:

Directions

Simply copy the below into the <BODY> of your page:

') 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

Inside the script, specify your images plus the delay between image change.


CSS Library | JavaScript & DHTML Menus
JavaScript Tools:
Site Info


CopyRight (c) 2018 JavaScript Kit. NO PART may be reproduced without author's permission. Contact Info