请问可不可以在javascript弹出对话框中,例如confirm 加上一组单选按钮radio 那么把"确定","取消"两个按钮改称其他文字显示并且再增加一个按钮,这样呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>window.confirm=function(str){ var html="\ <div align='center'>\ <div style='border:2px outset buttonlight;background:buttonface;width:400px;height:100px;'>\ <div style='height:20px;background:highlight;font:caption;color:white;padding:2 0 0 10;text-align:left;'>blueDestiny confirm:</div>\ "+str+"\ <div><INPUT TYPE='radio' NAME=''><INPUT TYPE='radio' NAME=''></div>\ <div style='padding:20px;'><input type='button' onclick='alert(\"yes\")' value='YES'> <input type='button' onclick='alert(\"no\")' value='N O'></div>\ </div></div>\ " document.write(html);}confirm("blueDestiny,never-online")</script> extjs 4.0 textfield 输入的文本框的背景色 问几个javascript创建function的问题? extjs子画面打印 有一封老外发来的信,部分内容看不懂,大家帮忙看看 关于JQUERY的单击事件的几种写法 幫忙看下js動態引入的問題 jquery colorbox 自动弹窗 再线等一个小问题,请各位帮忙 用javascript写一个函数。该函数是写出一个表单,但我的有问题???? 在Jsp页面javaScript不被执行 script问题:动态生成的图片为什么不能onclick="window.open('projectlist.jsp')"呢? 这句怎样写?
window.confirm=function(str)
{
var html="\
<div align='center'>\
<div style='border:2px outset buttonlight;background:buttonface;width:400px;height:100px;'>\
<div style='height:20px;background:highlight;font:caption;color:white;padding:2 0 0 10;text-align:left;'>blueDestiny confirm:</div>\
"+str+"\
<div><INPUT TYPE='radio' NAME=''><INPUT TYPE='radio' NAME=''></div>\
<div style='padding:20px;'><input type='button' onclick='alert(\"yes\")' value='YES'> <input type='button' onclick='alert(\"no\")' value='N O'></div>\
</div></div>\
"
document.write(html);
}
confirm("blueDestiny,never-online")
</script>