asp同一页面多个JS调用的问题?
我在同一页面放了两条调用,就出现无法显示的问题。
--------------------------------------------------------------
<!--#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>