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

Jsp/Servlet

开发平台:

Java

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