随机广告图片
?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>?
?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>?
轉載于:https://www.cnblogs.com/leya/articles/1031237.html
總結
- 上一篇: 详细讲解Java中log4j的使用方法
- 下一篇: 提档过户多少钱啊?