扬州买缅甸花梨家具:asp应用大家帮忙啊!!!

来源:百度文库 编辑:中科新闻网 时间:2024/04/30 04:19:26
<%if datediff("d",date,DoDateTime((rs.Fields.Item("n_date").Value), 2, -1))>=-0 then%>
document.write('<table width="98%" border="0" cellspacing="0" cellpadding="0"><tr> <td width="5%" align="center" height="16"></td><td><a href="news/<%=(rs.Fields.Item("n_tid").Value)%>/<%=(rs.Fields.Item("n_fname").Value)%>" target="_blank"><%=(rs.Fields.Item("n_title").Value)%></a></td><td width="20%"><%response.Write "<img src='../images/new.gif'>"%></td></tr></table>');
<%else%>
document.write('<table width="98%" border="0" cellspacing="0" cellpadding="0"><tr> <td width="5%" align="center" height="16"></td><td><a href="news/<%=(rs.Fields.Item("n_tid").Value)%>/<%=(rs.Fields.Item("n_fname").Value)%>" target="_blank"><%=(rs.Fields.Item("n_title").Value)%></a></td><td width="20%"><%=DoDateTime((rs.Fields.Item("n_date").Value), 2, -1)%></td></tr></table>');
<%end if%>
这段代码一运行ie就提示"运行时间错误",缺少标识符
这是怎么回事啊!!!
帮忙啊!!
急.................!!!!!!!

<%response.Write "<img src='../images/new.gif'>"%>

改成

<%response.Write "<img src=""../images/new.gif"">"%>

不解的是...这里有用<%%>的必要么?

document.write里面包含的字符应为双引号包含起来
里面字符串如果存在双引号,则用单引号表示。