标题:
随机显示带链接的图片
[打印本页]
作者:
fangzhen
时间:
2010-1-14 09:21
标题:
随机显示带链接的图片
<script language="JavaScript" type="text/javascript">
tips = new Array(2);
tips[0] = '<a href="
http://www.52cp.cn/activity/index.php/Furen
" target="_blank"><img src="images/upload/furen.gif" border="0" /></a>';
tips[1] = '<a href="
http://www.52cp.cn/activity/3dsjh
" target="_blank"><img src="images/upload/3dsjh.gif" border="0" /></a>';
index = Math.floor(Math.random() * tips.length);
document.write(tips[index]);
document.write(' ');
document.write('<br>');
</script>
欢迎光临 PHP开发笔记 (http://phpvi.com/)
Powered by Discuz! 6.1.0