alert()方法怎么实现出现的提示框的界面优化 用popup来模拟吧....那没法改的.... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 以前闲着没事儿写的一个,里面的图片可以在windows安装目录下找到<!--a.htm--><script language="JavaScript"><!--/*@cc_on @*//*@if (@_win32 && @_jscript_version>=5)function window.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;");}@end @*/var i=0;alert("用户名非法!"+i++);alert("用户名非法!"+i++);alert("用户名非法!"+i++);alert("用户名非法!"+i++);alert("用户名非法!"+i++);//--></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=""; window.close();}function setTimer(){ window.setTimeout("document.getElementById('btnOk').click()",1500);}document.onclick=function (){ document.getElementById("btnOk").focus(); }document.oncontextmenu=function (){ document.getElementById("btnOk").focus();}//--></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()"> </td></tr></table></body><html> 同志们帮忙看看CSDN上的这个网页效果是怎么实现的? 请高手帮忙改下这段代码?谢谢。 关于innerHTML 如何把从数据库中读取的内容作成.js文件?急用,谢谢了 一个JS,实现对同一个文本框前后两次输入的内容进行比较 关于鼠标状态问题,请给予解答,谢谢! 关于表单是否全填满的判断?菜鸟问题,急~! 各位高手帮助!!急急。在线等待!! 如何在客户端保存大量数据? 如何实现树形导航的隐藏 请问 <TD HEIGHT=20>怎么用css表示 时间差问题,很急,对于各位高手都是很简单的,
<!--a.htm-->
<script language="JavaScript">
<!--
/*@cc_on @*/
/*@if (@_win32 && @_jscript_version>=5)
function window.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;");
}
@end @*/
var i=0;
alert("用户名非法!"+i++);
alert("用户名非法!"+i++);
alert("用户名非法!"+i++);
alert("用户名非法!"+i++);
alert("用户名非法!"+i++);
//-->
</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="";
window.close();
}
function setTimer(){
window.setTimeout("document.getElementById('btnOk').click()",1500);
}
document.onclick=function (){
document.getElementById("btnOk").focus();
}
document.oncontextmenu=function (){
document.getElementById("btnOk").focus();
}
//-->
</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()">
</td>
</tr>
</table>
</body>
<html>