I've tried this one from
http://woody.cowpi.com/javascripts/randomImage_js.html
<SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript">
<!--
/* Written by: Mark Woodward (May, 1998)
Woody's JavaScripts at: woody.cowpi.com/javascripts.html
This routine pseudo-randomly displays an image. Place your image names
in the array. Replace URL/ with path to your directory of images, or
delete
if images are in same directory as your HTML document. Change .gif to
..jpg
if needed. Make sure all images have the same width and height.*/
var imageNames = new Array('mpt1','mpt2','mpt3','mpt4');
var seed = new Date();
var ptr = seed.getSeconds() % imageNames.length;
document.writeln('<IMG SRC="' + imageNames[ptr] + '.gif" ALT="" WIDTH=xx
HEIGHT=xx BORDER=0><BR>')
// -->
</SCRIPT>
</body>
NOTE: My files are mpt1.gif, mpt2.gif, mpt3.gif and mpt4.gif and in the
_border directory with the _top.htm that I'm changing.
I get no errors - that's good - but the image doesn't show up anywhere on
the page. What have I done wrong?
THanks.
Michael (the site is
www.missioneperte.it but I've not uploaded these changes)