如何在这里加上个URL连接?
首先在这里取出图片地址:(多张,所以用了个i)
response.write "img"&i&".src="&chr(34)&"img/"&pRs("filename")&chr(34)&chr(13)
在网页显示是使用:
<img border="0" style="filter:revealtrans(duration=2,transition=23);VISIBILITY: visible" src="img/bg.gif" border=0 name=pic>
调用图片
我想在图片上加上个URL地址怎么做?数据库里面已经有url这个字段了pRs("url")
应该在那里加,谢谢
[302 byte] By [
msdn] at [2007-8-15 10:03:45]

# 2 Re: 如何在这里加上个URL连接?
<a href="<%=pRs("url")%>">
<img border="0" style="filter:revealtrans(duration=2,transition=23);VISIBILITY: visible" src="img/bg.gif" border=0 name=pic>
</a>
# 6 Re: 如何在这里加上个URL连接?
respnose.write "url" & i & "=....."
有几个图,就定义几个url,和"img" & i那性质差不多。
<a name="..."><img border="0" style="filter:revealtrans(duration=2,transition=23);VISIBILITY: visible" src="img/bg.gif" border=0 name=pic>
</a>
改<a>的href为"url" & i就可以了。
# 15 Re: 如何在这里加上个URL连接?
respnose.write "url" & i & "="&chr(34)&pRs("url")&chr(34)&chr(13)
response.write "img"&i&".src="&chr(34)&"img/"&pRs("filename")&chr(34)&chr(13)
如果lz以前img & i能赋的话,url & i一样可以赋