如何使用mvc在不同的时间间隔自动打开弹出窗口 [英] how to open a popup window automatically at different time interval of time by using mvc
本文介绍了如何使用mvc在不同的时间间隔自动打开弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮助我
如何使用mvc在不同的时间间隔自动打开弹出窗口。
i希望在不同的时间间隔显示不同的警报框
我的代码
< script >
// setTimeout(function(){
// alert(提醒你只剩45分钟完成任务的时间 );},10000);
函数调用(){
popup = alert(时间提醒你只剩45分钟完成任务);
setTimeout(等待,8000);
}
函数调用者(){
setInterval(call,10000);
}
函数wait(){
popup.close();
}
< / script < span class =code-keyword>>
< body onload = < span class =code-keyword> caller(); >
< / body >
解决方案
试试这个链接
http://reallifejs.com/brainchunks/repeated-events-timeout-or-interval/ [ ^ ]
希望这有助于
setTimeout(function() {
alert( 时间提醒您完成任务只需45分钟);
}, 8000 );
can any one help me
how to open a popup window automatically at different time interval of time by using mvc.
i want to show different alert box at different time interval
my code
<script>
//setTimeout(function () {
// alert("Time to remind you that only 45 minutes is left to complete your task"); }, 10000);
function call() {
popup = alert("Time to remind you that only 45 minutes is left to complete your task");
setTimeout(wait, 8000);
}
function caller() {
setInterval(call, 10000);
}
function wait() {
popup.close();
}
</script>
<body onload="caller();">
</body>
解决方案
try this link
http://reallifejs.com/brainchunks/repeated-events-timeout-or-interval/[^]
Hope this helps
if all you need is to show an alert after an interval you need to do something like this
setTimeout(function(){ alert("Time to remind you that only 45 minutes is left to complete your task"); }, 8000);
这篇关于如何使用mvc在不同的时间间隔自动打开弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文