showModalDialog 模拟alert的功能 和alert同意的功能 但更换它的图标现在我是用showModalDialog 模拟alert自己popup一个htm文件我对前台不熟悉 谁帮忙 写个规范点的alert的htm文件?麻烦帮帮忙 急用! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼主强烈建议你不要用showModalDialog,因为太多的局限,建议你用一个div层来表示 顶楼上 模拟alert还是DIV弹出层是王道吧 test<html><script language="Javascript"><!--function btn_click() { window.showModalDialog("alert.html", document.all.text1.value,"dialogHeight:50px; dialogWidth:100px;");}--></script><body><input type="button" value="alert" onclick="btn_click()"><input type="text" name="text1" value="test"></body></html> alert.html<script type="text/javascript"> window.onload=fnInit;function fnInit(){ oArgs.innerHTML=window.dialogArguments;}</script><div style="position:absolute;width:100%;height:100%;background:#eee;"><div style="position:absolute;width:100%;height:10%;top=30%;text-align: center;" id="oArgs"></div><div style="position:absolute;width:100%;height:10%;top=60%;text-align: center"><input type=button value=" ok " onclick="window.close();"></div></div> jquery 怎么选择到一个a标签中的lable? 求教 关于方括号的一个函数的意思 郁闷:javascript动态显示textarea中输入的字符长度,超过制定长度要拦截住 js截图 关于获取ip 一个关于用js动态写入html产生的问题 评级标准 有一个<textarea>abc</textarea>还有一个<input type=button>希望按下按钮abc变成 请问如何在本页面屏蔽IE窗口的关闭按钮????? 100分立给!! 如何使用Javascript全屏打开窗口 问一个js隐藏和显示的问题!就是下拉 JQUERY如何获取超链接文本
<html><script language="Javascript">
<!--
function btn_click() {
window.showModalDialog("alert.html", document.all.text1.value,"dialogHeight:50px; dialogWidth:100px;");
}
-->
</script><body>
<input type="button" value="alert" onclick="btn_click()">
<input type="text" name="text1" value="test">
</body>
</html>
alert.html
<script type="text/javascript">
window.onload=fnInit;
function fnInit(){
oArgs.innerHTML=window.dialogArguments;
}
</script><div style="position:absolute;width:100%;height:100%;background:#eee;">
<div style="position:absolute;width:100%;height:10%;top=30%;text-align: center;" id="oArgs"></div>
<div style="position:absolute;width:100%;height:10%;top=60%;text-align: center"><input type=button value=" ok " onclick="window.close();"></div>
</div>