asp同一页面多个JS调用的问题?

asdfaaaaaaaaaaa 2007-03-23 10:46:53
我在同一页面放了两条调用,就出现无法显示的问题。
--------------------------------------------------------------
<!--#include file = admin_conn.asp -->
<%
ad_id = request("id")
if ad_id <> "" then
sql = "select * from ad where id="&ad_id
set rs = Server.CreateObject("ADODB.RecordSet")
rs.open sql,conn,1,1
%>
document.write("<table border=0 cellspacing=0 cellpadding=0>");
document.write("<tr>");
document.write("<td>");
<%if rs("type") = "图片" then%>
document.write("<a href=<%=rs("url")%>><img src=<%=rs("path")%> width=<%=rs("width")%> height=<%=rs("height")%> border=0></a>");
<%elseif rs("type") = "Flash" then%>
document.write("<embed src=<%=rs("path")%> width=<%=rs("width")%> height=<%=rs("height")%>></embed>");
<%end if%>
document.write("</td>");
document.write("</tr>");
document.write("</table>");
<%
end if
conn.close
set conn = nothing
rs.close
set rs = nothing
%>
----------------------------------------------------------------
<script TYPE="text/javascript" language="javascript" src="xxx.asp?id=1></script>
...全文
162 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
asdfaaaaaaaaaaa 2007-03-23
  • 打赏
  • 举报
回复
怎么样给分呢?
asdfaaaaaaaaaaa 2007-03-23
  • 打赏
  • 举报
回复
汗!太粗心,太粗心了!
hunfeiposan 2007-03-23
  • 打赏
  • 举报
回复
<!--#include file = "admin_conn.asp" -->

<script TYPE="text/javascript" language="javascript" src="xxx.asp?id=1"></script>

都忘写""了!
php_wsd 2007-03-23
  • 打赏
  • 举报
回复
src后面少了一个双引号

28,391

社区成员

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

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