JS 三选择提示框 请教如何用Javascript 如何实现,点击按钮弹出 "是" "否" "取消" 这种三选择提示框。我只知道confirm() 可实现两选择。。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 需要自己封装一个,ext中封装了一个 最好自己写一个,可以参照http://hi.baidu.com/itung/blog/item/280e0cfa609d2463034f561e.html 这样的代码如何?<script type="text/javascript">/*<![CDATA[*//*@cc_on @*//*@if (@_win32 && @_jscript_version>=5)window.confirm = function(str) //Author: meizz{ str=str.replace(/\'/g, "'&chr(39)&'").replace(/\r\n|\n|\r/g, "'&VBCrLf&'"); execScript("n = msgbox('"+ str +"', 3, '自定的的 confirm')", "vbscript"); return(n == 7); // 6 是 | 7 否 | 2 取消}@end @*/alert(confirm('1.\'第一行\';\r\n2.第二行;\r\n'));/*]]>*/</script> 写错了一个数字:<script type="text/javascript">/*<![CDATA[*//*@cc_on @*//*@if (@_win32 && @_jscript_version>=5)window.confirm = function(str) //Author: meizz{ str=str.replace(/\'/g, "'&chr(39)&'").replace(/\r\n|\n|\r/g, "'&VBCrLf&'"); execScript("n = msgbox('"+ str +"', 3, '自定的的 confirm')", "vbscript"); return(n == 6); // 6 是 | 7 否 | 2 取消}@end @*/alert(confirm('1.\'第一行\';\r\n2.第二行;\r\n'));/*]]>*/</script> 打开页面弹出一层DIV 的效果 js代码没有生效,chrome乱码 jQuery LocationSelect Plugin 请问这个函数是用来做什么的 JSP SQL2008R2连接问题 求个投票系统的插件 紧急求救! 如何让文本框获得焦点时清空该文本框的值?! js能对word进行操作嘛,如果可以,请赐教方法 用jquery读取table的某一行 在系统中添加滑动门的问题! 变量类型的迷惑
ext中封装了一个
<script type="text/javascript">/*<![CDATA[*/
/*@cc_on @*/
/*@if (@_win32 && @_jscript_version>=5)
window.confirm = function(str) //Author: meizz
{
str=str.replace(/\'/g, "'&chr(39)&'").replace(/\r\n|\n|\r/g, "'&VBCrLf&'");
execScript("n = msgbox('"+ str +"', 3, '自定的的 confirm')", "vbscript");
return(n == 7); // 6 是 | 7 否 | 2 取消
}
@end @*/
alert(confirm('1.\'第一行\';\r\n2.第二行;\r\n'));
/*]]>*/</script>
/*@cc_on @*/
/*@if (@_win32 && @_jscript_version>=5)
window.confirm = function(str) //Author: meizz
{
str=str.replace(/\'/g, "'&chr(39)&'").replace(/\r\n|\n|\r/g, "'&VBCrLf&'");
execScript("n = msgbox('"+ str +"', 3, '自定的的 confirm')", "vbscript");
return(n == 6); // 6 是 | 7 否 | 2 取消
}
@end @*/
alert(confirm('1.\'第一行\';\r\n2.第二行;\r\n'));
/*]]>*/</script>