第一个页面打开后60妙自动关闭,打开第二个页面。60妙可以指定
www.csu.com?aps=32 出现60秒自动关闭 弹开第二个页面
www.csu.com?aps=34 出现60秒自动关闭 弹开第三个页面
...............................
www.csu.com?aps=32 出现60秒自动关闭 弹开第二个页面
www.csu.com?aps=34 出现60秒自动关闭 弹开第三个页面
...............................
解决方案 »
- ExtJs中的GridPanel取每一行其中一个字段的值,急!!!!
- 缓存问题
- 粘贴及删除返回上一输入框在Firefox下无效
- 验证多个文本框和checkbox的表单
- jquery ui dialog destroy 后autocomplete失效!
- 怎么设置可以把dropdown设成可以输入数据?谢谢了哦!
- javascript的简单问题,请教
- Mozilla有没有对XML进行控制的功能?
- json名字不一定,怎么返回??
- jquery中 点击一个div,当前div的下一个div显示,其他所有的div隐藏,
- 谁知道一本学习javascript css ajax ...书的名字
- javascript调用asp.net页面
<html> <head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>自动定时打开页面 </title>
</head> <body>
<script language="javascript">
function A()
{
var url = document.getElementById('theUrl').value, pars = document.getElementById('theNumber').value.split(','), i = 0, w = null;
(function(){
if(w) w.close(), w = null;
w = window.open(url + '?' + pars[i]);
i >= pars.length-1 ? i = 0 : i++;
setTimeout(arguments.callee, 3000); // 3000改成 60000就是一分钟了
})()
}
</script> 请输入打广告的地址 <input type="text" id="theUrl"> <br/>
自动传递的参数(用,分割) <input type="text" id="theNumber"> <br/>
<input type="button" value="自动打广告" onclick="A()" />
</body> </html>
还有一点点小问题,请解决一下,就是时间能否在界面中设置呢?万分感谢!!!<html> <head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>自动定时打开页面 </title>
</head> <body>
<script language="javascript">
function A()
{
var url = document.getElementById('theUrl').value, pars = document.getElementById('theNumber').value.split(','), i = 0, w = null;
(function(){
if(w) w.close(), w = null;
w = window.open(url + pars[i]);
i >= pars.length-1 ? i = 0 : i++;
setTimeout(arguments.callee, 3000); //时间能否是自己设置的theTime,即能手动设置
})()
}
</script> 请输入打广告的地址 <input type="text" id="theUrl"> <br/>
自动传递的参数(用,分割) <input type="text" id="theNumber"> <br/>
自动跳转的时间<input type="text" value="45000" id="theTime"><br/>
<input type="button" value="自动打广告" onclick="A()" />
</body> </html>
theNumber里面如果填写“29,22,39”
进入页面
29
22
39
后又回到了29 22 39 能否循环一次就结束呢?多谢了高手!
<html> <head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>自动定时打开页面 </title>
</head> <body>
<script language="javascript">
function A()
{
var url = document.getElementById('theUrl').value, pars = document.getElementById('theNumber').value.split(','), i = 0, w = null, t = parseInt(document.getElementById('theTime').value);
if(t == '') t = 3000; //如果用户输入的时间为空就设置时间默认为3秒
(function(){
if(w) w.close(), w = null;
w = window.open(url + pars[i]);
// i >= pars.length-1 ? i = 0 : i++;
if(i>=pars.length-1) return//打开最后一页后退出
else i++; setTimeout(arguments.callee, t); //时间能否是自己设置的theTime,即能手动设置
})()
}
</script> 请输入打广告的地址 <input type="text" id="theUrl"> <br/>
自动传递的参数(用,分割) <input type="text" id="theNumber"> <br/>
自动跳转的时间 <input type="text" value="45000" id="theTime"> <br/>
<input type="button" value="自动打广告" onclick="A()" />
</body> </html>