注册 登录
编程论坛 ASP技术论坛

请问这段代码那里出错了?(18个悬赏分全部奉上)

wotaoyanni 发布于 2012-03-19 16:42, 387 次点击
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<%
sub s_msgbox(str)
response.Write("<script language=vbscript>msgbox"&str&"</script>")
end sub
%>
<%
s_msgbox"你好!"
%>
</body>
</html>


运行后没有窗口弹出来,什么地方出错了?
2 回复
#2
yms1232012-03-19 19:29
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<%
sub s_msgbox(str)
  response.Write("<script>alert("&str&");</script>")
end sub
%>
<%
s_msgbox "你好!"
%>
</body>
</html>
#3
wotaoyanni2012-03-20 17:07
问题搞定了,虽然没看你的代码,朋友帮我弄得,不过也谢谢你~!
1