28,391
社区成员
发帖
与我相关
我的任务
分享
Sub ShowAdClass1(ShowAdID,isdiv)
SqlClass="Select adid,adtypeid,width,height,adcontent From view_Ad Where adtypeID="&ShowAdID&" and DATEDIFF(day,getdate(),endtime)>=0 and isactive=1 order by starttime asc "
Set RsClass=ConnAd1.execute(SqlClass)
if not rsclass.eof then
adid=rsclass("adid")
adtypeid=rsclass("adtypeid")
width=rsclass("width")
height=rsclass("height")
adcontent=rsclass("adcontent")
end if
rsclass.close
set rsclass=nothing
if isdiv=1 then
Response.Write("<div style=""width:"&width&"px;height:")
Response.Write(height&"px;overflow:hidden;"" id=""sdwad"&ShowAdID&""">"&adcontent&"</div>")
elseif isdiv=0 then
Response.Write("<iframe width="""&width&""" height=""")
Response.Write(height&""" frameborder=""0"" id=""sdwad"&ShowAdID&""" scrolling=""no"" src=""show_ad.asp?id="&ShowAdID&"""></iframe>")
end if
connad1.execute("update ad set isdq=0 where adtypeid="&ShowAdID)
end sub
suspendcode12=" <DIV id=\"lovexin12\" style='left:22px;POSITION:absolute;TOP:69px;'> <a href='http://www.sd.com' target='_blank'> <img border=0 src= ' <font face="宋体" size=2>
<p>Microsoft VBScript 运行时错误</font> <font face="宋体" size=2>错误 '800a01a8'</font>
<p>
<font face="宋体" size=2>缺少对象: 'ConnAd1'</font>
<p>
<font face="宋体" size=2>/index1.asp</font><font face="宋体" size=2>,行 91</font>
<img border=0 src= <%call ShowAdClass1(517,1)%>> <br> <a href=JavaScript:; onclick=\"lovexin12.style.visibility='hidden'\"> <img border=0 src=/ad/081114/inc/close.gif> </a>
关键是我这里有一个调用的