asp这段代码如何转换成输出显示在html
<%setrs=server.createobject("adodb.recordset")sql="selecttop5linkad_url,linkad_imgfro...
<%
set rs=server.createobject("adodb.recordset")
sql="select top 5 linkad_url,linkad_img from ad where linkad_img<>'' order by linkad_id desc"
rs.open sql,conn,1,1
if not rs.eof then
do while not rs.eof
%>
img1=new Image ();
img1.src='<%=rs("linkad_img")%>';
url1=new Image ();
url1.src='<%=rs("linkad_url" 神马知道http://shenmazhidao.com )%>';
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
asp这段代码如何转换成输出显示在html 展开
set rs=server.createobject("adodb.recordset")
sql="select top 5 linkad_url,linkad_img from ad where linkad_img<>'' order by linkad_id desc"
rs.open sql,conn,1,1
if not rs.eof then
do while not rs.eof
%>
img1=new Image ();
img1.src='<%=rs("linkad_img")%>';
url1=new Image ();
url1.src='<%=rs("linkad_url" 神马知道http://shenmazhidao.com )%>';
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
asp这段代码如何转换成输出显示在html 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询