注册 登录
编程论坛 ASP技术论坛

图片输出问题

kerenc 发布于 2010-12-07 12:57, 412 次点击
如 输出文字 是这样<%if rs3("PLnum") =1 then response.Write"奥凯航空公司-BK"%>
请问 如果输出图片 <%if rs3("PLnum") =1 then response.Write"<img src="images/3xj.gif" width="200" height="200" border="0" />"%>
这种模式要怎么写。
请指点
7 回复
#2
wangjy5002010-12-07 13:09
response.Write"<img src=""images/3xj.gif"" width=""200"" height=""200"" border=""0" "/>"
#3
kerenc2010-12-07 14:54
弱弱的问下 response.Write"<img src=""images/3xj.gif"" width=""200"" height=""200"" border=""0" "/>"     (=""images/3xj.gif"" )这样填写两个冒号是何解???
#4
aspic2010-12-08 09:48
两个当作一个用呗
<%%>中的字符串 两对"" 输出成html的时候就是一对""
#5
hams2010-12-08 15:46
双引号里要再用双引号可以象2楼那样用两个双引号,也可以用一个单引号。我比较喜欢用后一个。
#6
hams2010-12-08 15:47
<%if rs3("PLnum") =1 then response.Write"<img src='images/3xj.gif' width='200' height='200' border='0' />"%>
#7
kerenc2010-12-17 10:11
这样改 大家看下对不对            <%if (rs_top("op_type"),5)>0  then response.Write"<img src='images/3xj.gif'  border='0'/>" %>  
 但是他出现的错误代码是

错误类型:
Microsoft VBScript 编译器错误 (0x800A03EE)
缺少 ')'
/inc/function.asp, line 1302, column 21
if (rs_top("op_type"),3)>0 then response.Write"<img src='images/3xj.gif' border='0'/>"

大家帮我看下 那里错了
谢谢大家
#8
hams2010-12-17 14:32
(rs_top("op_type"),3)
具体要看你rs_top这部份代码,但我想应该是:
(rs_top("op_type",3))
1