半点优化网 http://www.bdxc.net/
当前位置首页 > 网站技术问题> 正文

有没有这样一个方法可以让网站默认首页在一个代码里随机选择?

2022-05-16 12:01:06 暂无评论 136 网站技术问题 一个   首页   随机

<html>
<head>
<meta http-equiv=Content-Type content=text/html; charset=gb2312>
<title>页面跳转中,请等待…… </title>



<script language=javascript>
<!--
function urlList(a,b,c,d,e)
{
    this[0]=a;
    this[1]=b;
    this[2]=c;
    this[3]=d;
    this[4]=e;
}


function selectPage(list)
{
    var today=new Date();
    var page=today.getSeconds()%5;
    window.open(list[page],_self);
}



var choices=new urlList(, , , , );
-->
</script>
</head> <body onLoad=selectPage(choices)>
跳转中,请等待……
</body>
</html>

猜你喜欢