如何让JS时钟,在有alert弹出的时候继续运行 如何让JS时钟,在有alert弹出的时候继续运行多线程?有没有人知道,alert弹出的时候不阻塞JS的方法 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 模拟模态框。http://www.never-online.net/blog/article.asp?id=22 JK的CODE:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>JK:支持民族工业,尽量少买X货</title></head><script language=javascript defer >function modelessAlert(msg){msg=msg.replace(/"/g,"\\\"");msg=msg.replace(/\n/g,"\\n");window.showModelessDialog("javascript:alert(\""+msg+"\");window.close();","","status:no;resizable:no;help:no;dialogHeight:height:30px;dialogHeight:40px;");}function autoCloseAlert(msg,iMilliSeconds){msg=msg.replace(/"/g,"\\\"");msg=msg.replace(/\n/g,"\\n");if0.showModelessDialog("javascript:alert(\""+msg+"\");window.close();","","status:no;resizable:no;help:no;dialogHeight:height:30px;dialogHeight:40px;"); setTimeout("if0.location.reload();",iMilliSeconds);}var i=0;window.setInterval("aaaa.value=i++;",100);var msg="这个alert弹出来,后面的js还在运行。"modelessAlert(msg);</script><body><iframe style="display:none" name=if0 ></iframe><input name=aaaa><br><input type=button value="modelessAlert (非模态alert)" onclick="modelessAlert('Good Morning!中国人+_)(*&^%$#@!');"><br><input type=button value="autoCloseAlert (非模态自动关闭alert)" onclick="autoCloseAlert('Good Morning!中国人+_)(*&^%$#@!',1000);"><hr>注:用modelessDialog里的alert来实现alert,用更新dodelessDualog的父iframe来实现关闭alert</body></html> 购买虚拟主机送域名 安全稳定!1. 火爆推出:1个国际/国内域名+100M网页空间+企业邮局,惊爆价188元/年。详情登陆网站 http://deidc.com/services/special1. 火惊爆价: 200M网页空间 118元/年。了解详情登陆中频网站 http://deidc.com/Services/Hosting/popularity.aspDNN虚拟主机http://www.deidc.com/Services/Hosting/dnn.aspcoldfusion虚拟主机,支持.CFM 和.CFC,coldfusion7.0http://www.deidc.com/Services/Hosting/coldfusion.aspASP.net2.0虚拟主机,送SQL数据库http://www.deidc.com/Services/Hosting/business.aspFlash Remoting for .NET虚拟主机http://www.deidc.com/Services/Hosting/Flash_Remoting.asp网页制作免费教程站 http://homepage.deidc.com JS中alert()输出乱码问题 这样的结构关系如何获取A标签的id值? 请教一个JS CheckBox多级级联的写法,用Jquery实现最好!谢谢! document.getElementById() 如果在html中找不到ID....... 火狐下的下拉列表问题 简单的字符串操作 调用框架的另外HTM文件内容的语句语法有哪些地方错了,解决了马上给100分! 请您指教。。。。。。。 如何判断鼠标位置是否在一个<DIV>的范围内? 您今天看帖子了吗? 怎么会有这种写法呢,是什么意思啊 为什么复制的JS代码到新文件夹下却没有了JS效果,而且还有中文乱码呀?
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>JK:支持民族工业,尽量少买X货</title>
</head>
<script language=javascript defer >function modelessAlert(msg)
{
msg=msg.replace(/"/g,"\\\"");
msg=msg.replace(/\n/g,"\\n");
window.showModelessDialog("javascript:alert(\""+msg+"\");window.close();","","status:no;resizable:no;help:no;dialogHeight:height:30px;dialogHeight:40px;");
}function autoCloseAlert(msg,iMilliSeconds)
{
msg=msg.replace(/"/g,"\\\"");
msg=msg.replace(/\n/g,"\\n");
if0.showModelessDialog("javascript:alert(\""+msg+"\");window.close();","","status:no;resizable:no;help:no;dialogHeight:height:30px;dialogHeight:40px;");
setTimeout("if0.location.reload();",iMilliSeconds);
}var i=0;
window.setInterval("aaaa.value=i++;",100);var msg="这个alert弹出来,后面的js还在运行。"
modelessAlert(msg);
</script><body>
<iframe style="display:none" name=if0 ></iframe>
<input name=aaaa><br>
<input type=button value="modelessAlert (非模态alert)" onclick="modelessAlert('Good Morning!中国人+_)(*&^%$#@!');"><br>
<input type=button value="autoCloseAlert (非模态自动关闭alert)" onclick="autoCloseAlert('Good Morning!中国人+_)(*&^%$#@!',1000);"><hr>
注:用modelessDialog里的alert来实现alert,用更新dodelessDualog的父iframe来实现关闭alert</body>
</html>
1. 火爆推出:1个国际/国内域名+100M网页空间+企业邮局,惊爆价188元/年。
详情登陆网站 http://deidc.com/services/special1. 火惊爆价: 200M网页空间 118元/年。
了解详情登陆中频网站 http://deidc.com/Services/Hosting/popularity.aspDNN虚拟主机
http://www.deidc.com/Services/Hosting/dnn.aspcoldfusion虚拟主机,支持.CFM 和.CFC,coldfusion7.0
http://www.deidc.com/Services/Hosting/coldfusion.aspASP.net2.0虚拟主机,送SQL数据库
http://www.deidc.com/Services/Hosting/business.aspFlash Remoting for .NET虚拟主机
http://www.deidc.com/Services/Hosting/Flash_Remoting.asp
网页制作免费教程站 http://homepage.deidc.com