<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>
解决方案 »
- 左右两个div 。拉滚动条时左div不动一直在显示,右div跟滚动一起滚动!如何实现在啊!急急急急!!!!
- 请问我的m文件打不开怎么办?
- JavaScript代码解释(关于一个下拉菜单的)
- 高分求一个鼠标效果
- 看这个JS代码怎么写呀。。。。。
- 纯HTML页面如何使用JavaScript与JAVA交互?
- 关于XMLHTTP的问题,请帮我看一下
- 模拟confirm中点击取消按钮的事件语句有么??
- 我在一个TextArea里输入文字,如何得到光标的坐标呢。
- 关于js remove的问题 求问出了什么问题
- 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>