Ads7.asp
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:1k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%
  2. dim rsAds7
  3. set rsAds7=Server.CreateObject("Adodb.RecordSet")
  4. GuSQL="select top 10 * from "&GuTablePrefix&"_Ads where Ad_Type='7' order by Ad_Order asc"
  5. rsAds7.open GuSQL,GuConn,1,1
  6. if rsAds7.eof and rsAds7.bof then
  7. Response.write ""
  8. else
  9. do while not rsAds7.eof
  10. if right(rsAds7("Ad_Picture"),3)="swf" then
  11. 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="""&rsAds7("Ad_PictureWidth")&""" height="""&rsAds7("Ad_PictureHeight")&""">"
  12. Response.write "<param name=""movie"" value="""&rsAds7("Ad_Picture")&""">"
  13. Response.write "<param name=""quality"" value=""High"">"
  14. Response.write "<embed src="""&rsAds7("Ad_Picture")&""" pluginspage=""http://www.macromedia.com/go/getflashplayer"" type=""application/x-shockwave-flash"" name=""obj1"" width="""&rsAds7("Ad_PictureWidth")&""" height="""&rsAds7("Ad_PictureHeight")&"""></object>"
  15. Response.write "<br>"
  16. else
  17. Response.write "<a href="""&rsAds7("Ad_Href")&""" target=""_blank""><img src="""&rsAds7("Ad_Picture")&""" border=""0"" width="""&rsAds7("Ad_PictureWidth")&""" height="""&rsAds7("Ad_PictureHeight")&""" title="""&rsAds7("Ad_Title")&"""></a>"
  18. Response.write "<br>"
  19. end if
  20. rsAds7.movenext
  21. loop
  22. Response.write "</td></tr><tr><td width=""198"" height=""6"">"
  23. end if
  24. rsAds7.close
  25. set rsAds7=Nothing
  26. %>