ASP输出JS
我在生成的静态页用<scriptlanguage="javascript"src="../about.asp?id=41"></script>调用相关信息about.as...
我在生成的静态页用 <script language="javascript" src="../about.asp?id=41"></script> 调用相关信息 about.asp代码如下,实际运行无效果,请高手帮忙看看是什么原因啊,非常感谢! <!--#include file="conn.asp"--> <% thisnews=request("id") exec="select top 1 from N_News where id>'"&thisnews&"' order by id asc" set rs=server.createobject("adodb.recordset") rs.open exec,conn,1,1 htmlfilelink=rs("wenjian") newstitle=rs("newstitle") do while not rs.eof response.write "<li> <a class=tw2 href=/<%=htmlfilelink%> title=<%=newstitle%>><%=newstitle%></a></li>" rs.movenext loop rs.close set rs=nothing exec="select top 1 from N_News where id<'"&thisnews&"' order by id asc" set rs=server.createobject("adodb.recordset") rs.open exec,conn,1,1 htmlfilelink=rs("wenjian") newstitle=rs("newstitle") do while not rs.eof %> response.write "<li> <a class=tw2 href=/<%=htmlfilelink%> title=<%=newstitle%>><%=newstitle%></a></li>" rs.movenext loop rs.close set rs=nothing %>
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询