随机广告图片
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>
![](/Images/OutliningIndicators/None.gif)
2
![](/Images/OutliningIndicators/None.gif)
3
![](/Images/OutliningIndicators/None.gif)
4
![](/Images/OutliningIndicators/None.gif)
5
![](/Images/OutliningIndicators/None.gif)
6
![](/Images/OutliningIndicators/None.gif)
7
![](/Images/OutliningIndicators/None.gif)
8
![](/Images/OutliningIndicators/None.gif)
9
![](/Images/OutliningIndicators/None.gif)
10
![](/Images/OutliningIndicators/None.gif)
11
![](/Images/OutliningIndicators/None.gif)
12
![](/Images/OutliningIndicators/None.gif)
13
![](/Images/OutliningIndicators/None.gif)
14
![](/Images/OutliningIndicators/None.gif)
15
![](/Images/OutliningIndicators/None.gif)