我使用以下语句怎么无法生成?

xys 2002-03-29 12:17:11
我使用以下语句怎么无法生成?
response.write "<script>MsgBox("Hello World!", 65, "MsgBox Example")</script>"

错误类型:
Microsoft VBScript 编译器错误 (0x800A0401)
/scid/websiteadmin/connections/checkmember.asp, 第 7 行, 第 32 列
response.write "<script>MsgBox("Hello World!", 65, "MsgBox Example")</script>"
...全文
34 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
fbj007 2002-03-29
  • 打赏
  • 举报
回复
不会吧,我发晚了
fbj007 2002-03-29
  • 打赏
  • 举报
回复
应该这么写
<%response.write "<script language=vbscript>MsgBox ""Hello World!"",65,""MsgBox Example""</script>"%>
xys 2002-03-29
  • 打赏
  • 举报
回复
ok了谢谢: tripofdream(梦之旅) 不过你少了个引号,呵呵。。。
给分!
tripofdream 2002-03-29
  • 打赏
  • 举报
回复
sorry,the second one should be:
response.write "<script language=vbscript>MsgBox ""Hello World!"", 65, ""MsgBox Example""</script>"
tripofdream 2002-03-29
  • 打赏
  • 举报
回复
try
response.write "<script>alert('Hello World!', 65, 'MsgBox Example');</script>"
or
response.write "<script language=vbscript>MsgBox ""Hello World!"", 65, ""MsgBox Example"</script>"
the default script language of IE is javascript.

xys 2002-03-29
  • 打赏
  • 举报
回复
不出错了,但没有弹出对话框啊!各位帮忙啊!!!
longyear 2002-03-29
  • 打赏
  • 举报
回复
bj_yanyan(燕燕) 的对!
xys 2002-03-29
  • 打赏
  • 举报
回复
response.write "<script>MsgBox('Hello World!', 65, "MsgBox Example")</script>"

还是不行啊!
csharp__ 2002-03-29
  • 打赏
  • 举报
回复
把"hello world"换成'hello world'
shot_big 2002-03-29
  • 打赏
  • 举报
回复

改为:
response.write "<script>MsgBox(‘Hello World!’, 65, ‘MsgBox Example’)</script>"
bj_yanyan 2002-03-29
  • 打赏
  • 举报
回复
you should write:
response.write "<script>MsgBox('Hello World!', 65, 'MsgBox Example')</script>"

:))
shot_big 2002-03-29
  • 打赏
  • 举报
回复

改为:
response.write "<script>MsgBox(‘Hello World!’, 65, ‘MsgBox Example’)</script>"
xys 2002-03-29
  • 打赏
  • 举报
回复
help!
Triumph 2002-03-29
  • 打赏
  • 举报
回复
再说两句:
1.在<Script>中不写 Language 则默认为JavaScript,而MsgBox是属于VB脚本的,所以不行。
2.MsgBox是函数,但实际中并没有使用它返回值,也就是把它当过程使用了,所以就不能加括号了。VB就是这样:加括号是函数,不加括号是过程。
9742wsx 2002-03-29
  • 打赏
  • 举报
回复
response.write "<script>MsgBox('Hello World!', 65, 'MsgBox Example')</script>"
xys 2002-03-29
  • 打赏
  • 举报
回复
咦!怎么无法给分?
显示:
贴子回复次数大于跟给分次数

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧