<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>后台首页</title>
<link href="img/Style.Css" rel="stylesheet" type="text/css" />
<LINK href="img/admincpmain.css" type=text/css rel=stylesheet>
</head>
<body>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD>
<TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD>后台主页</TD>
</TR>
</TBODY>
</TABLE>
<table width=100% border=0 cellpadding=0 cellspacing=0 class=tableborder>
<TR>
<TD height="40" colspan=4 width="50%" valign="top">
<script src="maincall/MainCall.asp?t=1"></script>
</TD>
</TR>
</table>
</TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>IE的报错提示是“缺少‘)’”
我实在找不到错误在哪
请帮我看看问题在哪
在这个文件里面去找错误,调试下就知道在哪里出错了,这个是语法错误,(没闭合
运行是正确的
结果也正确啊
所以才奇怪!
Show=Show&"<table width=100% border=0 cellpadding=0 cellspacing=0 class=tableborder>"
Show=Show&"<TR class=header><td colspan=""3"" height=""40""><a href=""Savesms.asp"" target=""main"">后台短消息</a></td><td height=""40"" align=""right""><div align=""right""><a href=""Savesms.asp"" target=""main"">详情...</a> </div></td></TR>"
Show=Show&"<tr class=""altbg1"">"
Show=Show&"<td width=""10%"" class='css_top'><div align=""center"">序号</div></td>"
Show=Show&"<td width=""10%"" class='css_top'><div align=""center"">发件人</div></td>"
Show=Show&"<td width=""50%"" class='css_top'><div align=""center"">标题</div></td>"
Show=Show&"<td width=""30%"" class='css_top'><div align=""center"">时间</div></td>"
Show=Show&"</tr>"
Set ShortInfo=Server.CreateObject("Adodb.recordset")
ShortInfo.open "Select Top 8 SendName,IsSendMark,Send_Del_Mark,Send_ForeverDel_Mark,ReceiveName,IsRead,Receive_Del_Mark,Receive_ForeverDel_Mark,Title,Content,SendTime From [Back_ShortInfo] Where [ReceiveName]='"&NickName&"' And Receive_Del_Mark=0 And Receive_ForeverDel_Mark=0",ConnStrbbs,1,1
If Not ShortInfo.Eof Then
i=1
Do While Not ShortInfo.Eof
Show=Show&"<tr>"
Show=Show&"<td width=""11%"" class='css_top'><div align=""center"">"&i&"</div></td>"
Show=Show&"<td width=""11%"" class='css_top'><div align=""center"">"&ShortInfo("SendName")&"</div></td>"
Show=Show&"<td width=""53%"" class='css_top'><div align=""center"">"&ShortInfo("Title")&"</div></td>"
Show=Show&"<td width=""12%"" class='css_top'><div align=""center"">"&ShortInfo("SendTime")&"</div></td>"
Show=Show&"</tr>"
i=i+1
ShortInfo.Movenext
Loop
Else
Show=Show&"<tr>"
Show=Show&"<td colspan=""4""><div align=""left"">还没有短消息!</div></td>"
Show=Show&"</tr>"
End if
ShortInfo.Close
Set ShortInfo=Nothing
Show=Show&"</table>"
Response.Write "document.write('"+Show+"');"
content="text/html" charset="GB2312"
引用 5 楼 ghjlesse 的回复:
content="text/html; charset=GB2312"应为
content="text/html" charset="GB2312"
跟这个没关系.....汗.
第二种:将html代码放入jsp页面,用include导入