Ads6.asp
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:1k
- <%
- dim rsAds6
- set rsAds6=Server.CreateObject("Adodb.RecordSet")
- GuSQL="select top 10 * from "&GuTablePrefix&"_Ads where Ad_Type='6' order by Ad_Order asc"
- rsAds6.open GuSQL,GuConn,1,1
- if rsAds6.eof and rsAds6.bof then
- Response.write ""
- else
- do while not rsAds6.eof
- if right(rsAds6("Ad_Picture"),3)="swf" then
- Response.write "<object classid=""clsid:D27CDB6E-AE6D-11CF-96B8-444553540000"" id=""obj1"" codebase=""http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"" border=""0"" width="""&rsAds6("Ad_PictureWidth")&""" height="""&rsAds6("Ad_PictureHeight")&""">"
- Response.write "<param name=""movie"" value="""&rsAds6("Ad_Picture")&""">"
- Response.write "<param name=""quality"" value=""High"">"
- Response.write "<embed src="""&rsAds6("Ad_Picture")&""" pluginspage=""http://www.macromedia.com/go/getflashplayer"" type=""application/x-shockwave-flash"" name=""obj1"" width="""&rsAds6("Ad_PictureWidth")&""" height="""&rsAds6("Ad_PictureHeight")&"""></object>"
- Response.write "<br>"
- else
- Response.write "<a href="""&rsAds6("Ad_Href")&""" target=""_blank""><img src="""&rsAds6("Ad_Picture")&""" border=""0"" width="""&rsAds6("Ad_PictureWidth")&""" height="""&rsAds6("Ad_PictureHeight")&""" title="""&rsAds6("Ad_Title")&"""></a>"
- Response.write "<br>"
- end if
- rsAds6.movenext
- loop
- end if
- rsAds6.close
- set rsAds6=Nothing
- %>