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

来源:百度知道 编辑:UC知道 时间:2024/05/10 21:40:23
我在同一页面放了两条调用,就出现无法显示的问题。
--------------------------------------------------------------
<!--#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=&

你的js都没加标签
js和vs是不能混合调用的啊老大
比如document.write("<embed src=<%=rs("path")%> width=<%=rs("width")%> height=<%=rs("height")%>></embed>");

你都把<%=rs("path")%>作为字符串了,server怎么治性啊