不同页面不同广告的显示

yoken 阅读:1098 2007-10-08 01:37:00 评论:0
<%
function showadv(id,avwidth,avheight)
Dim strPic, strUrl
strPic=""
strUrl=""
set rsAdv = conn.execute("Select pic, url from Adv Where id="&id)
If not(rsAdv.eof and rsAdv.bof) Then
strPic = rsAdv("pic")
strUrl = rsAdv("url")
End if
rsAdv.close
set rsAdv = nothing
If strPic<>"" Then
If lcase(right(strPic,3))="swf" Then
%>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/sho ... h/swflash.cab#version=6,0,29,0" width="<%=avwidth%>" height="<%=avheight%>">
<param name="movie" value="<%=strPic%>">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="<%=strPic%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width=&q ... ;<%=avheight%>"></embed></object>
<% 
Else
If strUrl="" Then
response.Write("<img src=''"&strPic&"'' width="&avwidth&" height="&avheight&" />")
Else
response.Write("<a href=''"&strUrl&"'' target=''_blank''><img src=''"&strPic&"'' width="&avwidth&" height="&avheight&" border=0 /></a>")
End If 
End if
End If
end function
%>

转载保留链接!网址:http://80920140.com/post/48.html

标签:Apple Watch
声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源; 2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任; 3.作者投稿可能会经我们编辑修改或补充。

发表评论
搜索
排行榜
关注我们

扫一扫关注我们,了解最新精彩内容