document.write(<%
set rs=Server.CreateObject("adodb.recordset")
sql="select top 10 * from [productclass] where ProductClass_Type_ID=54 order by productclass_ID desc"
rs.open sql,conn,1,1
if not rs.eof Then
do while not rs.eof
%>
<% if rs("productclass_KeType") = 0 then %>
把html代码用也转换成asp的代码形式,然后,赋值给一个变量,用
document.write("<%=变量%>"),调用,完毕。
asp 也能直接调用
在需要加载的地方