confirm弹出对话框后,如果用户3秒不做选择,就认为它点击了确定 做不了吧,用东西自己模拟一个差不多我模拟过一个alert,跟confirm样子差不多,加点代码就行了,需要给我住处 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!--a.htm--><script language="JavaScript"><!--function Alert(strText){ var pWin=window.showModalDialog("b.htm",strText,"dialogHeight:116px; dialogWidth:232px; help: No; resizable: no; status: No; scroll:no; dialogTop:"+(screen.height-116)/2+"px; dialogLeft:"+(screen.width-232)/2+"px;");}Alert("真的要删除吗?");//--></script><!--b.htm--><html><head><style type="text/css">body{ }td,input{ font-size:12px}</style><script language="JavaScript"><!--var str = window.dialogArguments;function doOk(){ window.returnValue="yes"; window.close();}function doCancel(){ window.returnValue="no"; window.close();}var timer=null;function setTimer(){ timer=window.setTimeout("doOk()",3000); }//--></script><title align="center">--==提示信息==--</title></head><body style="background-color:buttonface; margin:0" onload="setTimer();"><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr height="65%"> <td width="25%" align="center" valign="center"><img src="warning.gif" style="width:32px; height:32px"></td> <td valign="middle"> <script language="JavaScript"> <!-- document.write(str); //--> </script> </td></tr><tr height="35%"> <td colspan="2" align="center" valign="top"> <input type="button" id="btnOk" value=" 确定 " onclick="doOk()"> <input type="button" id="btnOk" value=" 取消 " onclick="doCancel()"> </td></tr></table></body><script language="JavaScript"><!--document.onclick=function (){ document.getElementById("btnOk").focus(); }document.body.oncontextmenu=function (){ document.getElementById("btnOk").focus();}//--></script><html>放在同一目录下运行,看看是不是你想要的 zhaoxiaoyang(梅雪香@hisoft),谢谢但你用的是window.showModalDialog呀,是有标题栏的 <title align="center"> </title>改成够长的格就行了 还是有标题栏的,蓝色那东西,难看呀.win2003 得了,用div 里面嵌套个iframe模拟吧 失望中~~~~就是只想要confirm..... 正则匹配位置 求教 请教高手动态生成表单的格式排版问题 选项卡的问题,请大家帮个忙 修改Css样式 份散尽:心情极度郁闷 页面刷新问题! 我写的通用表单验证程序 为什么jquery的wrapInner()方法添加标签到页面,获取不到高度? 求正则表达式搜索字符串的例子 重复值当一个的算法问题[急]. 急, 如何在JSP中得到客户端的IP地址?
<script language="JavaScript">
<!--
function Alert(strText){
var pWin=window.showModalDialog("b.htm",strText,"dialogHeight:116px; dialogWidth:232px; help: No; resizable: no; status: No; scroll:no; dialogTop:"+(screen.height-116)/2+"px; dialogLeft:"+(screen.width-232)/2+"px;");
}
Alert("真的要删除吗?");
//-->
</script><!--b.htm-->
<html>
<head>
<style type="text/css">
body{ }
td,input{ font-size:12px}
</style>
<script language="JavaScript">
<!--
var str = window.dialogArguments;
function doOk(){
window.returnValue="yes";
window.close();}
function doCancel(){
window.returnValue="no";
window.close();}
var timer=null;
function setTimer(){
timer=window.setTimeout("doOk()",3000);
}
//-->
</script>
<title align="center">--==提示信息==--</title>
</head>
<body style="background-color:buttonface; margin:0" onload="setTimer();">
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
<tr height="65%">
<td width="25%" align="center" valign="center"><img src="warning.gif" style="width:32px; height:32px"></td>
<td valign="middle">
<script language="JavaScript">
<!--
document.write(str);
//-->
</script>
</td>
</tr>
<tr height="35%">
<td colspan="2" align="center" valign="top">
<input type="button" id="btnOk" value=" 确定 " onclick="doOk()">
<input type="button" id="btnOk" value=" 取消 " onclick="doCancel()">
</td>
</tr>
</table>
</body>
<script language="JavaScript">
<!--
document.onclick=function (){
document.getElementById("btnOk").focus();
}
document.body.oncontextmenu=function (){
document.getElementById("btnOk").focus();
}
//-->
</script>
<html>放在同一目录下运行,看看是不是你想要的
但你用的是window.showModalDialog呀,是有标题栏的
改成够长的格就行了
就是只想要confirm.....