首页 > 网站 > WEB开发 > 正文

随机显示不同网页

2024-04-27 13:57:47
字体:
来源:转载
供稿:网友
<!-- 把下面代码加到<body>区域中 -->
<script>
var url=new Array("http://www.vevb.com","http://www.sina.com.cn","http://www.163.com","http://www.cctv.com","http://www.sohu.com")
pnum=Math.floor(Math.random()*5)
location.href=url[pnum]
</script>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表