asp代码显示不正常

来源:百度知道 编辑:UC知道 时间:2024/05/05 22:43:25
<%
txtzm=""
set zmrs=conn.execute("select top 36 companyname,comid,vipdata,ishot,hotlogo,hotzt from company where isok=1 and vipqx>360 and vip=1 and comid in (select comid from jobs where zt<>1) order by newid()")
do while not zmrs.eof
poptxt=getpoptxt(zmrs("comid"))
txtzm=txtzm&"<span style='BORDER-RIGHT: #dcdcdc 1px solid;FLOAT: left; MARGIN: 0px 8px 4px 0px; WIDTH: 148px; BORDER-BOTTOM: #dcdcdc 1px solid;LIST-STYLE-TYPE: none'><DIV align='center'>if zmrs('hotzt')=1 then <a href='/pers/company_"&zmrs("comid")&".shtml' target='_blank' ><img src=uploadfile/hotlogo/"&zmrs("hotlogo")&" height=25 width=140 border=0></a> else <a href='/pers/company_"&zmrs("comid")&".shtml' target='_blank' ><img src=uploadfile/hotlogo/nologo.gif height=25 width=140 border=0></

><DIV align='center'>if zmrs('hotzt')=1 then
……

楼主基础薄弱啊,这段时间都是做毕业设计的……

一下为修改过的:
<%
txtzm=""
set zmrs=conn.execute("select top 36 companyname,comid,vipdata,ishot,hotlogo,hotzt from company where isok=1 and vipqx>360 and vip=1 and comid in (select comid from jobs where zt<>1) order by newid()")
do while not zmrs.eof
poptxt=getpoptxt(zmrs("comid"))
txtzm=txtzm&"<span style='BORDER-RIGHT: #dcdcdc 1px solid;FLOAT: left; MARGIN: 0px 8px 4px 0px; WIDTH: 148px; BORDER-BOTTOM: #dcdcdc 1px solid;LIST-STYLE-TYPE: none'><DIV align='center'>"
if zmrs("hotzt")=1 then
txtzm=txtzm&"<a href='/pers/company_"&zmrs("comid")&".shtml' target='_blank' ><img src=uploadfile/hotlogo/"&zmrs("hotlogo")&" height=25 width=140 border=0></a>"