<html>
<head>
<script language="javascript">
function GetRnd(min,max){
return parseInt(Math.random()*(max-min+1) + min);
}
window.location="http://www.abc.com/"+GetRnd(10393,10443);
</script>
</head>
<body>
</body>
</html>
<head>
<script language="javascript">
function GetRnd(min,max){
return parseInt(Math.random()*(max-min+1) + min);
}
window.location="http://www.abc.com/"+GetRnd(10393,10443);
</script>
</head>
<body>
</body>
</html>
解决方案 »
- js拼接标签<select>,却不能拼接上最后的结束标签</select>
- 又见table选择疑问
- 有没有哪位高人把prototype.js研究的比较透彻的?
- JS实现简单的密码登录,在线急等~~!!
- 页面模块自由拖动的问题
- 正则匹配问题,请看看吧
- extjs,大家帮我看一下,谢谢
- jqgrid多行同时编辑提交
- 在js中显示的优先级问题。急急急!!!!!
- 求javascript参考,教程下载地址(注意要chm格式的)
- js脚本下载OCX文件,注册ocx??
- 如何在jsp或者javaScrip页面中嵌入显示服务器端excel文件,服务器端的具有统计,计算的功能,在客户端打开之后原来的计算公式仍然有效,并且结果能返回到服务器端,请问哪位高手知道怎么实现?或有插件给发我也行,[email protected],兄弟先谢了
你这样只会是http://www.abc.com/数字
<head>
<script language="javascript">
function GetRnd(min,max){
return parseInt(Math.random()*(max-min+1) + min);
}
window.location="http://www.abc.com/"+GetRnd(10393,10443)+".html";
</script>
</head>
<body>
</body>
</html>
任选一个
1、return parseInt(Math.random()*(max-min+1) + min) + ".html";
2、window.location="http://www.abc.com/"+GetRnd(10393,10443)+".html";
function GetRnd(min,max){
return parseInt(Math.random()*(max-min+1) + min)+".html";
}
location="http://www.abc.com/"+GetRnd(10393,10443);
</script>