很奇怪的问题啊!求助高手!!!!!

lovecrystal87 2005-07-31 11:55:03
以下使我的asp文件内容:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<table>
<%
photoid=1;
for(i=1;i<=3;i++)
{
Response.Write "<tr>";
for (j=1;j<=5;j++)
{
Response.Write "<td>"
Response.Write "<img scr=/photo"+"photo"+photoid+">";
photoid++;
Response.Write "</td>";
}
Response.Write "</tr>";
}
%>
</table>
</body>
</html>
运行的时候提示出现错误:
错误类型:
Microsoft JScript 编译错误 (0x800A03EC)
缺少 ';'
/showphoto.asp, line 15, column 15
Response.Write "<tr>";
--------------^
请问这是为什么呢????
...全文
69 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
八哥 2005-08-01
  • 打赏
  • 举报
回复
如果你不是一位JavaScript高手,
那么就不要从VBScript切换到JScript。
JScript比VBScript对程序编写的要求更严格,
并且对关键字和变量名大小写敏感
八哥 2005-08-01
  • 打赏
  • 举报
回复
这么简单的问题也要找高手,高手都在忙,不是少什么;是少一对()
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<table>
<%
photoid=1;
for(i=1;i<=3;i++)
{
Response.Write ("<tr>");
for (j=1;j<=5;j++);
{
Response.Write ("<td>");
Response.Write ("<img scr=/photo"+"photo"+photoid+">");
photoid++;
Response.Write ("</td>");
}
Response.Write ("</tr>");
}
%>
</table>
</body>
</html>
lovecrystal87 2005-08-01
  • 打赏
  • 举报
回复
没有人会吗?
lovecrystal87 2005-08-01
  • 打赏
  • 举报
回复
楼上的,已经加了,你没有看见吗?
再说,你的跟我的还不是一样
我就是加了不行才来问的!!!!!
eastr 2005-08-01
  • 打赏
  • 举报
回复
如提示,加个;后试试看?这个问题不需要高手来。

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<table>
<%
photoid=1;
for(i=1;i<=3;i++)

{
Response.Write "<tr>";
for (j=1;j<=5;j++)
{
Response.Write "<td>";
Response.Write "<img scr=/photo"+"photo"+photoid+">";
photoid++;
Response.Write "</td>";
}
Response.Write "</tr>";
}
%>
</table>
</body>
</html>
ksn520 2005-08-01
  • 打赏
  • 举报
回复
Response.Write ("")
lovecrystal87 2005-08-01
  • 打赏
  • 举报
回复
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<table>
<%
photoid=1;
for(i=1;i<=3;i++)
{
Response.Write ("<tr>");
for (j=1;j<=5;j++);
{
Response.Write ("<td>");
Response.Write ("<img scr=/photo"+"photo"+photoid+">");
photoid++;
Response.Write ("</td>");
}
Response.Write ("</tr>");
}
%>
</table>
</body>
</html>

28,391

社区成员

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

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