1
<script language=”JavaScript”>
2
var imageList = new Array;
3
imageList[0] = “image1.jpg”;
4
imageList[1] = “image2.jpg”;
5
imageList[2] = “image3.jpg”;
6
imageList[3] = “image4.jpg”;
7
var urlList = new Array;
8
urlList[0] = “http://some.host/”;
9
urlList[1] = “http://another.host/”;
10
urlList[2] = “http://somewhere.else/”;
11
urlList[3] = “http://right.here/”;
12
var imageChoice = Math.floor(Math.random() * imageList.length);
13
document.write(‘<a href=”’ + urlList[imageChoice] + ‘“><img src=”’ + imageList
14
[imageChoice] + ‘“></a>’);
15
</script>
<script language=”JavaScript”>2
var imageList = new Array;3
imageList[0] = “image1.jpg”;4
imageList[1] = “image2.jpg”;5
imageList[2] = “image3.jpg”;6
imageList[3] = “image4.jpg”;7
var urlList = new Array;8
urlList[0] = “http://some.host/”;9
urlList[1] = “http://another.host/”;10
urlList[2] = “http://somewhere.else/”;11
urlList[3] = “http://right.here/”;12
var imageChoice = Math.floor(Math.random() * imageList.length);13
document.write(‘<a href=”’ + urlList[imageChoice] + ‘“><img src=”’ + imageList14
[imageChoice] + ‘“></a>’);15
</script>