O(∩_∩)O~ 。数据库中获取了多张图片的地址,前台如何显示呀。实在弄不明白了
O(∩_∩)O~ 求助。数据库中获取了多张图片的地址,前台怎么显示呀。实在弄不明白了
Response.Write "<div class=""itemNamePicture""><strong style=""color:red"">更多产品图片:</strong><br />"&VbCrLf
If Len(rs("OtherPic")) > 0 Then
Dim htmlshop
for htmlshop = 0 to ubound(OtherPic)
Response.Write "<a href="""&trim(OtherPic(htmlshop))&""" title="""&rs("ProductName")&""" rel=""lightbox[otherpic]"" target=""_blank""><img onMouseOver=""document.rImage.src='"&trim(OtherPic(htmlshop))&"'; pid='"&trim(OtherPic(htmlshop))&"'"" src="""&trim(OtherPic(htmlshop))&""" onload=""javascript:DrawImage(this,60,60);"" style=""border:1px solid #ccc; margin-left:5px; margin-right:5px; margin-top:5px""></a>"&VbCrLf
next
response.write "<br/></div>"

OtherPic这个字段里面获取了多张图片地址,前台怎么显示呀。。
------解决思路----------------------
按照*号分割字符串。
------解决思路----------------------
otherpic此是就是一个数组
Split 分割,然后循环输出
------解决思路----------------------
<%
pics=rs("otherpic")
arru=split(otherpic,"*")
for i=0 to ubound(arru)-1
response.write("<img src="&arru(i)& "/>")
next
%>
直接拿去用吧,你的问题解决了,谁来帮我解决一下
http://bbs.****.net/topics/390898651
------解决思路----------------------
arru=split(otherpic,"*") 手误,改成
arru=split(pics,"*")
Response.Write "<div class=""itemNamePicture""><strong style=""color:red"">更多产品图片:</strong><br />"&VbCrLf
If Len(rs("OtherPic")) > 0 Then
Dim htmlshop
for htmlshop = 0 to ubound(OtherPic)
Response.Write "<a href="""&trim(OtherPic(htmlshop))&""" title="""&rs("ProductName")&""" rel=""lightbox[otherpic]"" target=""_blank""><img onMouseOver=""document.rImage.src='"&trim(OtherPic(htmlshop))&"'; pid='"&trim(OtherPic(htmlshop))&"'"" src="""&trim(OtherPic(htmlshop))&""" onload=""javascript:DrawImage(this,60,60);"" style=""border:1px solid #ccc; margin-left:5px; margin-right:5px; margin-top:5px""></a>"&VbCrLf
next
response.write "<br/></div>"
OtherPic这个字段里面获取了多张图片地址,前台怎么显示呀。。
------解决思路----------------------
按照*号分割字符串。
------解决思路----------------------
otherpic此是就是一个数组
Split 分割,然后循环输出
------解决思路----------------------
<%
pics=rs("otherpic")
arru=split(otherpic,"*")
for i=0 to ubound(arru)-1
response.write("<img src="&arru(i)& "/>")
next
%>
直接拿去用吧,你的问题解决了,谁来帮我解决一下
http://bbs.****.net/topics/390898651
------解决思路----------------------
arru=split(otherpic,"*") 手误,改成
arru=split(pics,"*")