首页 > 网站 > 建站经验 > 正文

商城样式中商品图片加上连接

2024-08-30 19:06:15
字体:
来源:转载
供稿:网友

打开/Foosun/Admin/Refresh/Mall_Functiom.asp

找到:大约780行四周

if Not IsNull(AlreadyProductObj("Products_sPicture")) then
StyleContent = Replace(StyleContent,"{Mall_Products_sPicture}","<img border=""0"" width=""" & PicwidthStr & """ height=""" & PicHeightStr & """ src=""" & TempSysRootDir & AlreadyProductObj("Products_sPicture") & """>")
else
StyleContent = Replace(StyleContent,"{Mall_Products_sPicture}","")
end if

改为:

if Not IsNull(AlreadyProductObj("Products_sPicture")) then
StyleContent = Replace(StyleContent,"{Mall_Products_sPicture}","<a target=""_blank"" href=""" & GetOneProductLinkURL(AlreadyProductObj("ProductID")) & """ " & OpenTypeStr & "><img border=""0"" width=""" & PicwidthStr & """ height=""" & PicHeightStr & """ src=""" & TempSysRootDir & AlreadyProductObj("Products_sPicture") & """> </a>")
else
StyleContent = Replace(StyleContent,"{Mall_Products_sPicture}","")
end if

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表