Try this script:
change the file names "random1.gif, random2.gif" etc to your files.
<script language="JavaScript">
<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!
theImages[0] = 'images/random/random1.gif'
theImages[1] = 'images/random/random2.gif'
theImages[2] = 'images/random/random3.gif'
theImages[3] = 'images/random/random4.gif'
theImages[4] = 'images/random/random5.gif'
theImages[5] = 'images/random/random6.gif'
theImages[6] = 'images/random/random7.gif'
// ======================================
// do not change anything below this line
// ======================================
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer
= new Image()
preBuffer.src = theImages
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
//-->
</script>
Put this code where you want the image to be displayed
<script language="JavaScript">
<!--
showImage();
//-->
</script>
Works well enough and I use it on my site: www.murraywebs.com
Hit F5, and a new image loads with each refresh/reload of the page.
"Virginias Best Kept Secret" <Virginias Best Kept
(e-mail address removed)> wrote in message
I need to have a given nature jpeg photo (say 200x150 oixels in size)
change
each time a visitor visits the website or refreshes. This is better known
as,
the picture of the day. I do not want to use Flash, rather I need
something
like a slide show that changes.
Thanks in advance!
James