花旗松素真的那么厉害:asp应用大家帮忙啊!!!

来源:百度文库 编辑:中科新闻网 时间:2024/05/04 12:43:11
<%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%"><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就提示"运行时间错误",还提示错误:缺少')'
着是怎么回事啊!!!
帮忙啊!!
急.................!!!!!!!

"><img src='../images/new.gif'></td></tr></table>');

改成

"><img src="../images/new.gif"></td></tr></table>');